:root {
  --page: #1c1c1e;
  --panel: #1c1c1e;
  --field: #252527;
  --footer: #2c2c2e;
  --border: #606064;
  --text: #f5f5f7;
  --muted: #919195;
  --accent: #0071e3;
  --link: #0095ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; }
.page-main { display: flex; justify-content: center; align-items: flex-start; padding: clamp(32px, 8.5vh, 94px) 24px 64px; }
.card {
  width: 620px; max-width: 100%; min-height: 700px;
  padding: 38px 86px 47px;
  background: var(--panel); border: 0; border-radius: 34px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 24px 60px -12px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
}
.brand { text-align: center; }
.logo { display: block; width: 160px; height: 160px; margin: 0 auto 22px; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.022em; white-space: nowrap; }
form { display: flex; flex: 1; flex-direction: column; margin-top: 27px; }
.fields { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--field); }
.field { position: relative; height: 53px; }
.field + .field { border-top: 1px solid var(--border); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.field:first-child:focus-within { border-radius: 11px 11px 0 0; }
.field:last-child:focus-within { border-radius: 0 0 11px 11px; }
.field label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); transform-origin: left top; font-size: 17px; line-height: 20px; color: var(--muted); pointer-events: none; transition: top .18s ease, transform .18s ease; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label { top: 9px; transform: translateY(0) scale(.706); }
@media (prefers-reduced-motion: reduce) { .field label { transition: none; } }
.field input { display: block; width: 100%; height: 100%; padding: 23px 16px 6px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; letter-spacing: -.015em; }
.field input::placeholder { color: #bababe; opacity: 1; }
.field input[type=password] { letter-spacing: 2px; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; line-height: 18px; }
.remember { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.remember input { appearance: none; margin: 0; width: 15px; height: 15px; border: 1px solid #626267; border-radius: 3px; background: #252527; display: grid; place-content: center; cursor: pointer; }
.remember input:checked { background: var(--accent); border-color: var(--accent); }
.remember input:checked::after { content: ""; width: 7px; height: 4px; border-left: 2px solid white; border-bottom: 2px solid white; transform: translateY(-1px) rotate(-45deg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.forgot { white-space: nowrap; }
a:focus-visible, button:focus-visible, .remember input:focus-visible { outline: 3px solid #66b3ff; outline-offset: 4px; }
.submit { width: 100%; min-height: 37px; margin-top: auto; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.submit:hover { background: #007af5; }
.submit:active { background: #0064d1; }
.status { min-height: 18px; margin: 16px 0; color: var(--muted); font-size: 12px; text-align: center; }
.site-footer { width: 100%; margin: 0; border: 0; border-radius: 0; background: var(--footer); padding: 32px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; }
.foot-links a { padding: 0 10px; font-size: 11px; line-height: 15px; color: #b3b3b7; }
.foot-links a:first-child { padding-left: 0; }
.foot-links a + a { border-left: 1px solid #48484b; }
.copyright { margin: 0; font-size: 11px; line-height: 16px; color: #b3b3b7; }
@media (max-width: 700px) {
  .card { padding-inline: clamp(24px, 8vw, 70px); }
  h1 { font-size: clamp(23px, 4.6vw, 32px); white-space: normal; }
  .footer-inner { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
}
@media (max-width: 500px) {
  .page-main { padding: 0; align-items: stretch; }
  .card {
    width: 100%; min-height: max(780px, 100svh);
    border-radius: 0; box-shadow: none;
    padding: calc(clamp(80px, 10svh, 96px) + env(safe-area-inset-top))
      clamp(24px, 11.3vw, 48px) calc(50px + env(safe-area-inset-bottom));
  }
  .logo { width: 160px; height: 160px; margin-bottom: 22px; }
  h1 { font-size: clamp(28px, 8.1vw, 32px); line-height: 1.12; }
  .title-line { display: block; }
  form { margin-top: 30px; }
  .fields { flex-shrink: 0; }
  .field { height: 55px; }
  .form-options {
    flex-direction: column; align-items: flex-start;
    justify-content: flex-start; margin-top: 14px;
    font-size: 14px; line-height: 18px; gap: 8px;
  }
  .remember { gap: 10px; }
  .submit { flex-shrink: 0; min-height: 37px; }
  .status { margin-bottom: 32px; }
  .site-footer { padding-top: 24px; }
}
/* Shared across all three steps. */
[hidden] { display: none !important; }
h1 { white-space: normal; }
.product { margin: 0 0 12px; color: #b3b3b7; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.description { margin: 18px 0 0; color: #b3b3b7; font-size: 14px; line-height: 1.5; text-align: center; }
.error { margin: 16px 0 0; color: #ff696f; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #ff696f; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--link); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.text-button:hover { text-decoration: underline; }
.field input.code { font-size: 22px; letter-spacing: .25em; }
.field:only-child:focus-within { border-radius: 11px; }
.status { overflow-wrap: anywhere; }
.success-content { display: flex; flex: 1; flex-direction: column; align-items: center; }
.success-content .submit { display: grid; place-items: center; text-decoration: none; }
.privacy-note { font-size: 12px; color: #b3b3b7; line-height: 1.5; }
@media (max-width: 500px) {
  .card { min-height: max(860px, 100svh); }
  .description { font-size: 13px; }
  .actions { flex-direction: column; gap: 16px; }
}

