/* ─────────────────────────────────────────
   Disney+ Login — minimal rebuild
   Tokens extracted from the original.
   ───────────────────────────────────────── */

@font-face {
  font-family: Inspire;
  font-weight: 400;
  src: url("../f2199f841165.bin") format("woff2"),
       url("../c7d8596d5b57.woff") format("woff");
}
@font-face {
  font-family: Inspire;
  font-weight: 600;
  src: url("../4ff15ddc9344.bin") format("woff2"),
       url("../b16fb94fbdeb.woff") format("woff");
}

:root {
  --bg: radial-gradient(circle at 20% 95%, #056877, #051828 96%);
  --card: #fff;
  --ink: #252526;          /* rgb(37 37 38) */
  --ink-muted: #5f6166;    /* rgb(95 97 102) */
  --grey-border: #86898f;  /* rgb(134 137 143) */
  --divider: #e9ebf0;      /* rgb(233 235 240) */
  --field-bg: #e9ebf0;
  --link: #0040e5;         /* rgb(0 64 229) */
  --btn: #000;
  --focus: #0040e5;
  --font: Inspire, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 0;
  gap: 24px;
}

/* ── Hero logo ── */
.hero-logo {
  width: 288px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fade-in .35s cubic-bezier(.4,.8,.74,1) .15s both;
}
.hero-logo svg { width: 100%; height: 100%; }
.hero-logo svg path { fill: #fff; }

@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ── Card ── */
.card {
  width: 100%;
  max-width: 580px;
  background: var(--card);
  color: var(--ink);
  border-radius: 24px;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-mark { align-self: flex-start; height: 36px; }
.brand-mark svg { height: 100%; width: auto; display: block; }
.brand-mark svg path { fill: #1a1d29; }

.card h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 40px;
  color: var(--ink);
}
.card .lead {
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-muted);
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.email-form,
.password-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.email-form > .btn,
.password-form > .btn,
.form .btn {
  width: 100%;
  align-self: stretch;
}

.field {
  position: relative;
  display: block;
  background: var(--field-bg);
  border: 0;
  border-bottom: 2px solid var(--grey-border);
  border-radius: 4px 4px 0 0;
  transition: border-color .2s;
}
.field:focus-within { border-bottom-color: var(--ink); }

.field input {
  width: 100%;
  height: 60px;
  padding: 26px 16px 10px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.field span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 16px;
  pointer-events: none;
  transition: top .15s, transform .15s, font-size .15s, color .15s;
}
.field input:not(:placeholder-shown) + span,
.field input:focus + span {
  top: 10px;
  transform: none;
  font-size: 12px;
}

/* ── Button ── */
.btn {
  height: 52px;
  padding: 14px 24px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #fff;
  background: var(--btn);
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover  { background: #252526; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* ── Two-step flow (email → password) ── */
.step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.step[hidden] { display: none; }
.step.is-active {
  opacity: 1;
  transform: none;
}
.step.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.lead strong {
  font-weight: 600;
  color: var(--ink);
}
.edit-link {
  color: var(--link);
  text-decoration: underline;
  margin-left: 2px;
}

/* ── Password field (with eye button) ── */
.password-field {
  display: flex;
  align-items: stretch;
}
.password-field input {
  padding-right: 56px;
}
.eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #5f6166;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.eye:hover { background: rgba(0,0,0,.05); }
.eye svg { width: 22px; height: 22px; }

.case-note {
  margin-top: -12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── MyDisney links on password step ── */
.mydisney-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}
.link-row {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.link-row:hover { text-decoration: underline; }
.link-row svg { width: 12px; height: 12px; }

.otc-link {
  align-self: flex-start;
  color: var(--link);
  font-size: 14px;
  text-decoration: underline;
}

/* ── Learn-more (always visible) ── */
.learn-more {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  margin-top: 8px;
}
.learn-more h2 {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
}
.learn-more p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-muted);
}
.learn-more a {
  color: var(--link);
  text-decoration: underline;
}

/* ── Brand parade (horizontal, centered) ── */
.brands {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  row-gap: 16px;
}
.brands li {
  display: inline-flex;
  align-items: center;
}
.brands svg { height: 24px; width: auto; display: block; }
.brands svg path,
.brands svg polygon,
.brands svg rect,
.brands svg g { fill: #86898f !important; }

/* ── Footer ── */
.legal {
  padding: 32px 16px 48px;
  max-width: 960px;
  width: 100%;
  text-align: center;
}
.legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.legal a, .text-link {
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.legal a:hover, .text-link:hover { text-decoration: underline; }
.legal .copy {
  margin-top: 24px;
  font-size: 12px;
  color: #b0bcc2;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .card {
    max-width: none;
    border-radius: 10px;
    padding: 32px 16px;
  }
  .hero-logo { width: 240px; height: 56px; }
  .card h1 { font-size: 24px; line-height: 32px; }
}
