/* =========================================================
   Scarlet — Iniciar sesión / Crear cuenta
   Mismos tokens visuales que css/public/landing.css
   ========================================================= */

:root {
  --bg: #F5F0E8;
  --bg-2: #EFE8DC;
  --surface: #FFFFFF;
  --field: #FBF8F3;
  --ink: #2A221C;
  --ink-2: #5E554D;
  --ink-3: #8A8077;
  --line: rgba(42, 34, 28, .1);
  --line-strong: rgba(42, 34, 28, .18);

  --orange: #E8770F;
  --orange-btn: #BD5807;
  --orange-btn-hover: #A44C05;
  --orange-text: #A44C05;
  --orange-soft: #FCE9D6;

  --sage: #7F9A7B;
  --slate: #7489A3;
  --mauve: #B286A8;
  --sage-soft: #E5EEE3;
  --mauve-soft: #F2E6EF;

  --ok: #4D6A4A;
  --ok-soft: #E8F0E6;
  --err: #B03E33;
  --err-soft: #FBEAE7;
  --warn: #8A5A0B;
  --warn-soft: #FCF1DC;
  --info: #4F647E;
  --info-soft: #E6ECF3;

  --feature-grad: linear-gradient(135deg, #F4EEFA 0%, #FBEDEE 100%);
  --shadow-sm: 0 2px 8px rgba(60, 40, 20, .05);
  --shadow: 0 18px 40px -18px rgba(60, 40, 20, .22), 0 4px 12px rgba(60, 40, 20, .04);
  --shadow-lg: 0 40px 80px -30px rgba(60, 40, 20, .35);
  --ring: 0 0 0 4px rgba(232, 119, 15, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* «only»: evita que el modo oscuro forzado del navegador (Brave/Chrome
     «Auto Dark Mode», modo noche) oscurezca el tema claro. */
  color-scheme: only light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1815; --bg-2: #241F1B; --surface: #29231F; --field: #221D19;
    --ink: #F4EDE4; --ink-2: #C3B8AD; --ink-3: #958A80;
    --line: rgba(244, 237, 228, .1); --line-strong: rgba(244, 237, 228, .2);
    --orange: #F08A2C; --orange-text: #F59A47; --orange-soft: rgba(240, 138, 44, .16);
    --sage: #9CB898; --slate: #93A7C0; --mauve: #CFA3C5;
    --sage-soft: rgba(156, 184, 152, .16); --mauve-soft: rgba(207, 163, 197, .16);
    --ok: #A9C7A5; --ok-soft: rgba(156, 184, 152, .14);
    --err: #F0938A; --err-soft: rgba(240, 147, 138, .12);
    --warn: #F0C27A; --warn-soft: rgba(240, 194, 122, .12);
    --info: #A9BBD2; --info-soft: rgba(147, 167, 192, .14);
    --feature-grad: linear-gradient(135deg, #2D2533 0%, #33262A 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .2);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .7);
    --ring: 0 0 0 4px rgba(240, 138, 44, .22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1815; --bg-2: #241F1B; --surface: #29231F; --field: #221D19;
  --ink: #F4EDE4; --ink-2: #C3B8AD; --ink-3: #958A80;
  --line: rgba(244, 237, 228, .1); --line-strong: rgba(244, 237, 228, .2);
  --orange: #F08A2C; --orange-text: #F59A47; --orange-soft: rgba(240, 138, 44, .16);
  --sage: #9CB898; --slate: #93A7C0; --mauve: #CFA3C5;
  --sage-soft: rgba(156, 184, 152, .16); --mauve-soft: rgba(207, 163, 197, .16);
  --ok: #A9C7A5; --ok-soft: rgba(156, 184, 152, .14);
  --err: #F0938A; --err-soft: rgba(240, 147, 138, .12);
  --warn: #F0C27A; --warn-soft: rgba(240, 194, 122, .12);
  --info: #A9BBD2; --info-soft: rgba(147, 167, 192, .14);
  --feature-grad: linear-gradient(135deg, #2D2533 0%, #33262A 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .2);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .7);
  --ring: 0 0 0 4px rgba(240, 138, 44, .22);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { margin: 0; letter-spacing: -.025em; line-height: 1.05; font-weight: 800; }
p { margin: 0; color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.eyebrow, .label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow { color: var(--orange-text); margin-bottom: 12px; }
.accent { color: var(--orange); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: block; width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface); }
.ico--sun { display: none; }
:root[data-theme="dark"] .ico--sun { display: block; }
:root[data-theme="dark"] .ico--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico--sun { display: block; }
  :root:not([data-theme="light"]) .ico--moon { display: none; }
}

/* ---------- Layout ---------- */
.auth { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(0, 1.05fr); min-height: 100vh; }

.auth__aside {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  padding: 16px 0 16px 16px;
}
.aside__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; gap: 40px;
  padding: clamp(28px, 4vw, 48px); border-radius: 32px;
  background: var(--feature-grad); box-shadow: var(--shadow);
  overflow: hidden;
}
.aside__copy h1 { font-size: clamp(36px, 3.6vw, 52px); }
.aside__copy p { margin-top: 16px; font-size: 18px; max-width: 34ch; }
.aside__foot { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink-3); }

.auth__main { display: flex; flex-direction: column; min-width: 0; padding: 16px clamp(16px, 4vw, 56px) 40px; }
.auth__top { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand--mobile { display: none; }
.brand--mobile .brand__mark { width: 36px; height: 36px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  min-height: 44px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.back-link:hover { background: var(--surface); color: var(--ink); }
.back-link .ico { width: 18px; height: 18px; }

.auth__card {
  width: 100%; max-width: 480px; margin: auto;
  padding: clamp(24px, 4vw, 40px) 0;
}

.card-head h2 { font-size: clamp(30px, 3.4vw, 40px); }
.card-head > p { margin-top: 10px; font-size: 16.5px; }
.trust { display: flex; align-items: center; gap: 8px; font-size: 14.5px !important; color: var(--ink-3) !important; }
.trust .ico { width: 18px; height: 18px; color: var(--sage); stroke-width: 2.2; }

/* ---------- Showcase (panel izquierdo) ---------- */
.showcase { display: grid; gap: 14px; max-width: 400px; }
.today-card, .mini-card, .stack__card {
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
}
.today-card { padding: 20px; display: grid; gap: 10px; }
.today-card__top { display: flex; justify-content: space-between; align-items: center; }
.today-card__num { display: flex; align-items: baseline; gap: 10px; }
.today-card__num strong { font-size: 52px; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.today-card__num span { font-weight: 600; line-height: 1.2; max-width: 9em; }
.today-card__meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.today-card__meta .ico { width: 16px; height: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.chip .ico { width: 15px; height: 15px; }
.chip--orange { background: var(--orange-soft); color: var(--orange-text); }
.seg { display: flex; gap: 4px; height: 9px; }
.seg__p { width: var(--w); border-radius: 5px; transform-origin: left; }
.seg__p--new { background: var(--mauve); } .seg__p--learn { background: var(--slate); } .seg__p--done { background: var(--sage); }
.seg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--new { background: var(--mauve); } .dot--learn { background: var(--slate); } .dot--done { background: var(--sage); }
.mini-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.mini-card { padding: 16px; display: grid; gap: 8px; align-content: center; }
.mini-card small { font-size: 12.5px; color: var(--ink-3); }
.mini-card--icon { display: flex; align-items: center; gap: 12px; }
.mini-card--icon .ico { width: 40px; height: 40px; padding: 9px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); }
.mini-card--icon b { display: block; font-size: 18px; line-height: 1.1; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--orange); transform-origin: left; }

.stack { position: relative; height: 200px; margin-bottom: 8px; }
.stack__card { position: absolute; inset: 0; }
.stack__card--back { transform: rotate(-6deg) translate(-10px, 10px); opacity: .5; }
.stack__card--mid { transform: rotate(3deg) translate(8px, 4px); opacity: .75; }
.stack__card--front {
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px;
}
.stack__card--front b { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--mauve-soft); color: var(--ink-2);
}
.grades-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grades-mini span {
  text-align: center; padding: 7px 4px; border-radius: 12px; font-size: 12px; font-weight: 600;
  background: var(--bg); color: var(--ink-2);
}
.grades-mini .is-on { background: var(--sage-soft); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--sage); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.perks .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--surface); color: var(--orange); box-shadow: var(--shadow-sm); }


/* ---------- Selector de rol ---------- */
.segmented {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 28px; padding: 5px; border-radius: 999px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
}
.segmented__btn {
  position: relative; z-index: 1; min-height: 42px; border: 0; border-radius: 999px;
  background: transparent; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer;
  transition: color .25s;
}
.segmented__btn.is-on { color: var(--ink); }
.segmented__btn:focus-visible { outline-offset: -2px; }
.segmented__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3);
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  transform: translateX(calc(var(--i, 0) * 100%));
}

/* ---------- Avisos ---------- */
.notices { display: grid; gap: 10px; margin-top: 20px; }
.notices:empty { display: none; }
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
}
.notice .ico { width: 18px; height: 18px; margin-top: 1px; }
.notice--error { background: var(--err-soft); color: var(--err); }
.notice--warning { background: var(--warn-soft); color: var(--warn); }
.notice--success { background: var(--ok-soft); color: var(--ok); }
.notice--info { background: var(--info-soft); color: var(--info); }
.notice__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notice__link .ico { width: 15px; height: 15px; margin: 0; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 18px; margin-top: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__label label { font-size: 14.5px; font-weight: 600; }
.link-sm { font-size: 14px; font-weight: 600; color: var(--orange-text); }
.link-sm:hover { text-decoration: underline; text-underline-offset: 3px; }

.field__control { position: relative; }
.field__ico { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; transition: color .2s; }
.field__input {
  width: 100%; min-height: 54px; padding: 14px 16px 14px 46px;
  border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field__input::placeholder { color: var(--ink-3); opacity: .8; }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus { outline: none; border-color: var(--orange); background: var(--surface); box-shadow: var(--ring); }
.field__control:focus-within .field__ico { color: var(--orange); }
.field__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--field) inset; -webkit-text-fill-color: var(--ink); }
.field:has(.pw-toggle) .field__input { padding-right: 54px; }

.field.has-error .field__input { border-color: var(--err); background: var(--err-soft); }
.field.has-error .field__input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 18%, transparent); }
.field.has-error .field__ico { color: var(--err); }
.field.is-valid .field__input { border-color: var(--sage); }
.field__error, .field__hint {
  display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500;
}
.field__error { color: var(--err); }
.field__hint { color: var(--ink-3); }
.field__error .ico, .field__hint .ico { width: 15px; height: 15px; }
.caps-hint { color: var(--warn); }

.pw-toggle {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg-2); }
.pw-toggle .ico--eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .ico--eye { display: none; }
.pw-toggle[aria-pressed="true"] .ico--eye-off { display: block; }

/* Fuerza de contraseña */
.strength { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.strength__bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength__bars i { height: 6px; border-radius: 99px; background: var(--bg-2); transition: background-color .3s; }
.strength__label { font-size: 13px; font-weight: 600; color: var(--ink-3); min-width: 10.5em; text-align: right; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--orange); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--slate); }
.strength[data-score="4"] i { background: var(--sage); }
.strength[data-score="1"] .strength__label { color: var(--err); }
.strength[data-score="4"] .strength__label { color: var(--ok); }

.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rules li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-3); background: var(--bg-2);
  transition: background-color .25s, color .25s;
}
.rules .ico { width: 14px; height: 14px; }
.rules li.is-met { background: var(--ok-soft); color: var(--ok); }
.rules li.is-met .ico { stroke-width: 2.6; }

.match-msg:empty { display: none; }
.match-msg.is-ok { color: var(--ok); }
.match-msg.is-bad { color: var(--err); }

/* Checkbox */
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--ink-2); user-select: none; }
.check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--field);
  transition: background-color .2s, border-color .2s;
}
.check__box .ico { width: 15px; height: 15px; stroke-width: 2.6; color: #fff; opacity: 0; }
.check__input:checked + .check__box { background: var(--orange-btn); border-color: var(--orange-btn); }
.check__input:checked + .check__box .ico { opacity: 1; }
.check__input:focus-visible + .check__box { box-shadow: var(--ring); }

/* Botón */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.btn--primary { background: var(--orange-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(189, 88, 7, .7); }
.btn--primary:hover { background: var(--orange-btn-hover); }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; margin-top: 6px; }
.spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .ico { display: none; }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.switch { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; font-size: 15.5px; }
.switch a { font-weight: 700; color: var(--orange-text); }
.switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pantallas de cuenta (recuperar, verificar) ---------- */
.badge-ico {
  display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px;
  border-radius: 20px; background: var(--orange-soft); color: var(--orange);
}
.badge-ico .ico { width: 28px; height: 28px; }
.badge-ico--ok { background: var(--ok-soft); color: var(--ok); }
.badge-ico--ok .ico { stroke-width: 2.4; }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent, var(--shadow-sm); }
.actions { display: grid; gap: 10px; margin-top: 28px; }
.actions .btn--block { margin-top: 0; }

.email-pill {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 600; word-break: break-all;
}
.email-pill .ico { color: var(--orange); }
.tips { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tips li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); }
.tips .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }

.safe-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border-radius: 24px; background: var(--surface); box-shadow: var(--shadow);
}
.safe-card b { display: block; font-size: 17px; line-height: 1.2; }
.safe-card small { font-size: 13.5px; color: var(--ink-3); }
.safe-card__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--ok-soft); color: var(--ok); }
.safe-card__ico .ico { width: 26px; height: 26px; }
.today-card--compact { gap: 14px; }
.keep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keep div { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 16px; background: var(--bg); }
.keep .ico { width: 20px; height: 20px; color: var(--orange); margin-bottom: 4px; }
.keep b { font-size: 20px; line-height: 1.1; }
.keep small { font-size: 12px; color: var(--ink-3); }

.mail-card { padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 8px; }
.mail-card__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; color: var(--ink-3); }
.mail-card__head .ico { width: 18px; height: 18px; }
.mail-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; }
.mail-row > div { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mail-row img { width: 36px; height: 36px; border-radius: 12px; background: var(--bg); padding: 4px; }
.mail-row b { font-size: 15px; line-height: 1.1; }
.mail-row small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row.is-new { background: var(--orange-soft); }
.mail-row.is-new > div { gap: 2px; }
.mail-row__ph { width: 36px; height: 36px; border-radius: 12px; background: var(--bg-2); flex: none; }
.ph { display: block; height: 8px; border-radius: 99px; background: var(--bg-2); }
.ph--w40 { width: 40%; } .ph--w60 { width: 60%; } .ph--w70 { width: 70%; } .ph--w80 { width: 80%; }
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-mini li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.steps-mini span {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--orange-text); font-weight: 800; font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .brand--mobile { display: inline-flex; }
  .back-link { margin-left: auto; margin-right: 0; }
  .back-link span { display: none; }
  .back-link { padding: 0; width: 44px; justify-content: center; border: 1.5px solid var(--line); }
  .auth__card { margin-top: 12px; }
}
@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; gap: 18px; }
  .strength__label { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
