/* ═══════════════════════════════════════════════════════════════════════════
   SURF-AUTH — the authentication shell.
   Source: legacy Web Auth (§4 W.A, PC two-column) + Mini Auth (§6.A, mobile).
   ADJ-009: mobile composition comes from Mini; the Web two-column shell is the
   PC ADAPTATION, not the mobile truth with a column switched off.
   ADJ-018: a high-intent arrival gets Light Auth (phone + OTP), not a password
   form. Password and OAuth remain available as SECONDARY entries.
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-wrap { min-height: 100%; display: flex; align-items: stretch; background: var(--c-surface); }
.auth-inner { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; min-height: 100%; }

/* ── Left brand panel — the PC adaptation (hidden below 880px, which is the
      breakpoint ADJ-009 names; Mini's mobile composition takes over there). ── */
.auth-brand {
  position: relative; overflow: hidden; padding: var(--sp-10) var(--sp-12);
  background: var(--grad-hero); display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--grad-ai); filter: blur(120px); opacity: 0.32;
  right: -120px; bottom: -140px; pointer-events: none;
}
.auth-brand.is-ai { background: var(--grad-dark); }
.auth-story { position: relative; z-index: 1; max-width: 460px; }
.auth-story .as-eyebrow { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-primary-600); margin-bottom: var(--sp-3); }
.auth-brand.is-ai .as-eyebrow { color: var(--c-ai); }
.auth-story h2 { font-size: var(--fs-h1); font-weight: var(--fw-bold); color: var(--c-ink); line-height: 1.3; }
.auth-brand.is-ai .auth-story h2 { color: #fff; }
.auth-story .as-lead { font-size: var(--fs-md); color: var(--c-text); margin-top: var(--sp-3); line-height: 1.7; }
.auth-brand.is-ai .as-lead { color: var(--c-on-dark-soft); }
.brand-points { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.brand-point { display: flex; gap: 11px; align-items: flex-start; }
.brand-point .bp-ico { width: 34px; height: 34px; border-radius: var(--r-sm); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-primary-600); flex: none;
  box-shadow: var(--sh-sm); }
.auth-brand.is-ai .brand-point .bp-ico { background: rgba(255, 255, 255, 0.12); color: #fff; }
.brand-point .bp-title { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--c-ink); }
.auth-brand.is-ai .brand-point .bp-title { color: #fff; }
.brand-point .bp-desc { font-size: var(--fs-sm); color: var(--c-mute); margin-top: 2px; }
.auth-brand.is-ai .brand-point .bp-desc { color: var(--c-on-dark-mute); }
.mentor-wall { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.mentor-wall .mw-text { font-size: var(--fs-sm); color: var(--c-text); }
.note-card { background: rgba(255, 255, 255, 0.72); border-radius: var(--r-md); padding: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.9); max-width: 420px; }
.brand-stats { display: flex; gap: var(--sp-6); }

/* ── Right form panel ───────────────────────────────────────────────────── */
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface); }
.auth-card { width: 100%; max-width: 404px; }
.auth-card.is-wide { max-width: 430px; }
.auth-head { margin-bottom: var(--sp-6); }
.auth-head h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); color: var(--c-ink); line-height: 1.3; }
.auth-head p { font-size: var(--fs-sm); color: var(--c-mute); margin-top: var(--sp-2); line-height: 1.6; }
.auth-back { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm);
  color: var(--c-mute); margin-bottom: var(--sp-5); }
.auth-back:hover { color: var(--c-primary-600); }
.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }

/* ── Intent banner — the typed AuthIntentContext, stated on the face ─────── */
.intent-banner { display: flex; gap: 11px; align-items: flex-start; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); background: var(--c-primary-50); border: 1px solid var(--c-primary-100); }
.intent-banner .ib-ico { width: 34px; height: 34px; border-radius: var(--r-sm); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-primary-600); flex: none; }
.intent-banner .ib-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-primary-700); }
.intent-banner .ib-ctx { font-size: var(--fs-xs); color: var(--c-primary-600); margin-top: 3px;
  font-family: ui-monospace, Menlo, monospace; }

/* ── Segmented method switch — Light Auth is the DEFAULT when an intent
      is carried, so it sits first. (ADJ-018) ─────────────────────────────── */
.method-tabs { display: flex; background: var(--c-surface-2); border-radius: var(--r-sm); padding: 3px; gap: 2px;
  margin-bottom: var(--sp-5); }
.method-tabs button { flex: 1; padding: 9px; border-radius: var(--r-xs); font-size: var(--fs-sm);
  color: var(--c-mute); font-weight: var(--fw-medium); }
.method-tabs button.is-on { background: var(--c-surface); color: var(--c-primary-600);
  box-shadow: var(--sh-xs); font-weight: var(--fw-semibold); }
.method-tabs .rec { font-size: 10px; color: var(--c-accent-600); margin-left: 3px; }

/* ── OTP cells ───────────────────────────────────────────────────────────── */
.code-grid { display: flex; gap: var(--sp-2); }
.code-cell { flex: 1; height: 52px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-h2);
  font-weight: var(--fw-semibold); color: var(--c-ink); background: var(--c-surface);
  font-variant-numeric: tabular-nums; }
.code-cell.is-filled { border-color: var(--c-primary-400); background: var(--c-primary-50); }
.code-cell.is-focus { border-color: var(--c-primary-500); box-shadow: 0 0 0 3px var(--c-primary-50); }
.code-cell.is-error { border-color: var(--c-danger); background: var(--c-danger-bg); }
.resend-row { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); }
.send-code { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-primary-600); }
.send-code[disabled] { color: var(--c-faint); }

/* ── Step dots (forgot → reset chain) ────────────────────────────────────── */
.step-dots { display: flex; gap: 6px; align-items: center; margin-bottom: var(--sp-5); }
.step-dot { width: 26px; height: 4px; border-radius: 2px; background: var(--c-line); }
.step-dot.is-active { background: var(--c-primary-500); }
.step-dot.is-done { background: var(--c-primary-300); }

/* ── Divider + social ────────────────────────────────────────────────────── */
.or-split { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0;
  font-size: var(--fs-xs); color: var(--c-faint); }
.or-split::before, .or-split::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }
.social-row { display: flex; gap: var(--sp-3); }
.social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; border: 1.5px solid var(--c-line); border-radius: var(--r-md); font-size: var(--fs-sm);
  font-weight: var(--fw-medium); color: var(--c-ink-soft); background: var(--c-surface); }
.social-btn:hover { border-color: var(--c-primary-300); background: var(--c-surface-2); }
.social-btn .sb-ico { width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: var(--fw-bold); }
.trust-row { display: flex; gap: var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-soft); flex-wrap: wrap; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--c-mute); }
.auth-foot { margin-top: var(--sp-5); text-align: center; font-size: var(--fs-sm); color: var(--c-mute); }
.auth-foot a { color: var(--c-primary-600); font-weight: var(--fw-medium); }
.pw-tips { display: flex; flex-direction: column; gap: 8px; }
.pw-tip { display: flex; gap: 7px; align-items: center; font-size: var(--fs-xs); color: var(--c-mute); }
.pw-tip.is-ok { color: var(--c-success-ink); }

/* Pinned Mini auth family: domain-local descendants; existing PC kit shell unchanged. */
.auth-family { --c-line: #ebecf3; --c-line-soft: #f3f4f9; --c-surface-2: #f7f8fc; color: var(--c-ink); line-height: 1.5; }
.auth-family button { cursor: pointer; }
.auth-family button:disabled { cursor: not-allowed; opacity: .55; }
.auth-family h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: 1.5; }
.auth-family h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
.auth-family p, .auth-family h2 { line-height: 1.5; }
.auth-verify .auth-head b { font-weight: var(--fw-semibold); color: var(--c-ink); }
.auth-mini-hero, .auth-mini-nav { display: none; }
.auth-source-card { position: relative; background: var(--c-surface); }
.auth-source-field { display: block; margin: 0; }
.auth-source-field > span { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: 8px; }
.auth-source-field .input { width: 100%; box-sizing: border-box; min-height: 46px; }
.auth-link { color: var(--c-primary-600); font-size: var(--fs-sm); font-weight: var(--fw-semibold); background: transparent; border: 0; padding: 6px 0; }
.auth-password { position: relative; }
.auth-password .input { padding-right: 46px; }
.auth-pw-wrap { position: relative; }
.auth-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--c-mute); background: none; border: 0; }
.auth-eye:active { transform: translateY(-50%) scale(.88); }
.auth-agreement { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: var(--fs-xs); margin-top: 16px; line-height: 1.5; }
.auth-agreement label { display: inline-flex; align-items: flex-start; gap: 8px; }
.auth-agreement input { appearance: none; width: 17px; height: 17px; flex: none; box-sizing: border-box; margin: 1px 0 0; border: 1.5px solid var(--c-line); border-radius: 5px; background: var(--c-surface); }
.auth-agreement input:checked { background-color: var(--c-primary-500); border-color: var(--c-primary-500); background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20d%3D%22M2%206l3%203%205-6%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E"); background-size: 12px 12px; background-position: center; background-repeat: no-repeat; }
.auth-agreement input:focus-visible { outline: 2px solid var(--c-primary-500); outline-offset: 2px; }
.auth-agreement .auth-link { font-size: var(--fs-xs); }
.auth-family .method-tabs { margin-top: 16px; }
.auth-family .social-btn .wechat { background: #1aae3f; }
.auth-family .social-btn .apple { background: #1a1c2e; }
.auth-value-card { background: var(--grad-ai); color: #fff; border-radius: var(--r-lg); padding: 16px; margin: -2px 0 16px; }
.auth-value-card h3 { font-weight: var(--fw-bold); }
.auth-value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.auth-value-grid > div { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.auth-value-grid small { font-size: var(--fs-xs); opacity: .8; }
.auth-source-pad { display: flex; flex-direction: column; gap: 0; }
.auth-source-pad .auth-head { margin-bottom: 0; }
.auth-verify-icon, .auth-forgot-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--c-info-bg); display: flex; align-items: center; justify-content: center; color: var(--c-primary-600); }
.auth-forgot-icon { background: var(--c-accent-50); color: var(--c-accent-600); }
.auth-family .code-cell { width: 0; min-width: 0; text-align: center; padding: 0; }
.auth-family .auth-otp-error { color: var(--c-danger); font-size: var(--fs-xs); text-align: center; margin: 0; }
.auth-family .resend-row { justify-content: center; color: var(--c-mute); }
.auth-strength { display: flex; gap: 6px; margin-top: 8px; }
.auth-strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--c-line); }
.auth-strength i.level-1 { background: var(--c-danger); }
.auth-strength i.level-2 { background: var(--c-warning); }
.auth-strength i.level-3 { background: var(--c-success); }
.auth-strength-label { font-size: var(--fs-xs); color: var(--c-mute); margin-top: 6px; }
.auth-callback { min-height: 100%; background: var(--c-surface); display: flex; align-items: center; justify-content: center; padding: 40px 24px; box-sizing: border-box; }
.auth-cb-core { max-width: 404px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.auth-cb-logo-wrap { width: 88px; height: 88px; position: relative; display: grid; place-items: center; margin-bottom: 24px; }
.auth-cb-ring { position: absolute; inset: 0; border: 2px solid var(--c-primary-100); border-radius: 50%; }
.auth-cb-logo { width: 64px; height: 64px; background: var(--grad-primary); color: #fff; border-radius: 20px; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.auth-cb-steps { display: flex; align-items: center; width: 240px; }
.auth-cb-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-mute); font-size: var(--fs-xs); }
.auth-cb-steps i { flex: 1; height: 2px; background: var(--c-line); }
.auth-cb-labels { display: flex; justify-content: space-between; width: 280px; font-size: var(--fs-xs); color: var(--c-mute); margin: 12px 0 24px; }
@container (max-width: 880px) {
  .auth-mobile-hero { display: block; }
  .auth-inner { display: block; }
  .auth-brand { display: none; }
  .auth-main { display: block; padding: 0; }
  .auth-main > .auth-card { max-width: none; width: 100%; }
  .auth-mini-nav { display: flex; align-items: center; gap: 12px; padding: 14px 22px; min-height: 48px; box-sizing: border-box; font-weight: var(--fw-semibold); }
  .auth-mini-hero { display: block; position: relative; overflow: hidden; padding: 18px 26px 64px; padding-top: calc(18px + env(safe-area-inset-top)); --grad-hero: linear-gradient(165deg, #eef1ff 0%, #f6f4ff 50%, #fff4ed 100%); background: var(--grad-hero); }
  .auth-mini-hero.slim { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 54px; }
  .auth-mini-hero.on-dark { background: var(--grad-dark); color: #fff; padding-top: 60px; }
  .auth-mini-hero.on-dark h1 { color: #fff; }
  .auth-mini-hero > h1 { margin-top: 12px; }
  .auth-mini-hero p { font-size: var(--fs-sm); color: var(--c-mute); margin-top: 4px; }
  .auth-mini-hero.on-dark p { color: rgba(255,255,255,.78); }
  .auth-deco { position: absolute; border-radius: 50%; pointer-events: none; }
  .auth-deco.one { width: 160px; height: 160px; top: -50px; right: -40px; background: rgba(255,255,255,.3); }
  .auth-deco.two { width: 90px; height: 90px; bottom: 10px; left: -30px; background: rgba(255,122,61,.12); }
  .auth-hero-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 2; }
  .auth-hero-logo { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); font-size: 22px; font-weight: 700; }
  .auth-hero-logo.lg { width: 54px; height: 54px; border-radius: 16px; }
  .auth-hero-logo svg { width: 30px; height: 30px; }
  .on-dark .auth-hero-logo { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
  .auth-mentor-badge { display: inline-block; padding: 4px 10px; margin-top: 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.16); font-size: var(--fs-xs); }
  .auth-hero-tutors { display: flex; margin-top: 24px; position: relative; z-index: 2; }
  .auth-hero-tutors span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c-primary-100); color: var(--c-primary-600); margin-left: -10px; border: 2.5px solid #fff; font-size: var(--fs-xs); }
  .auth-hero-tutors span:first-child { margin-left: 0; }
  .auth-hero-tutors span:nth-child(2) { background: var(--c-accent-100); color: var(--c-accent-600); }
  .auth-hero-tutors span:nth-child(3) { background: var(--c-teal-50); color: var(--c-teal-600); }
  .auth-hero-tutors span:nth-child(4) { background: var(--c-ai-bg); color: var(--c-ai); }
  .auth-hero-tutors span:last-child { background: var(--c-line-soft); color: var(--c-mute); font-size: 11px; }
  .auth-source-card { margin-top: -40px; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 22px 22px; z-index: 3; }
  .auth-register:has(.on-dark) .auth-mini-nav { position: absolute; z-index: 4; color: #fff; }
  .auth-register:has(.on-dark) .auth-mini-nav .auth-link { color: #fff; }
  .auth-source-pad { padding: 16px; }
}

/* Auth repair wave: source-local geometry and honest executable QA states. */
.auth-boundary { font-size: 11px; color: var(--c-mute); margin-top: 12px; }
.auth-feedback { font-size: var(--fs-xs); color: var(--c-primary-700); margin: 2px 0 0; }
.auth-family .input-row { display: flex; align-items: flex-end; gap: 8px; }
.auth-family .input-row > .input { flex: 1; min-width: 0; }
.auth-family .input-row .send-code { flex: none; min-height: 46px; }
.auth-fail .auth-source-field .input { border-color: var(--c-danger); }
.auth-lock-clock { color: var(--c-danger); font-size: var(--fs-xs); }
.auth-value-grid { gap: 8px; margin-top: 13px; }
.auth-value-grid > div { gap: 0; }
.auth-value-ico { width: 40px; height: 40px; border-radius: 13px; margin-bottom: 7px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.auth-value-grid b { font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.auth-value-grid small { font-size: 10px; color: rgba(255,255,255,.78); margin-top: 2px; }
.auth-family .code-cell:focus-visible { outline: 2px solid var(--c-primary-500); outline-offset: 2px; }
.auth-cb-logo-wrap { width: 120px; height: 120px; }
.auth-cb-ring { border-width: 3px; border-top-color: var(--c-primary-500); animation: auth-ring-spin 1s linear infinite; }
.auth-cb-logo { width: 72px; height: 72px; border-radius: 24px; }
.auth-cb-steps { width: auto; gap: 8px; margin-top: 34px; }
.auth-cb-steps span { width: 22px; height: 22px; }
.auth-cb-steps i { width: 26px; flex: none; }
.auth-cb-labels { width: auto; gap: 24px; }
@keyframes auth-ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-cb-ring { animation: none; } }
@container (max-width: 880px) {
  .auth-desktop-title { display: none; }
  .auth-mini-nav { position: sticky; top: 0; z-index: 5; background: var(--c-surface); padding-top: calc(14px + env(safe-area-inset-top)); }
  .auth-mini-nav > .auth-link { width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface-2); display: grid; place-items: center; }
  .auth-register:has(.on-dark) .auth-mini-nav { background: transparent; }
  .auth-register:has(.on-dark) .auth-mini-nav > .auth-link { background: rgba(255,255,255,.14); }
  .auth-mini-hero.on-dark { padding-top: calc(60px + env(safe-area-inset-top)); }
  .auth-deco.one { width: 140px; height: 140px; background: rgba(91,84,236,0.1); }
  .auth-source-card { padding-bottom: env(safe-area-inset-bottom); }
  .auth-foot { padding: 20px 0; margin-top: 0; }
  .auth-source-pad { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Task18: TT 2c0998cd section metrics; local overrides of shared compound rows. */
.auth-family .input-row { border: 0; border-radius: 0; background: transparent; padding: 0; overflow: visible; }
.auth-family .input-row > .input { border: 1.5px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); }
.auth-family .auth-feedback:empty { display: none; }
.auth-action .auth-boundary { margin: 3px 0 0; font-size: 10px; line-height: 1.3; }
.auth-register .auth-form { margin-top: 20px; }
.auth-register .auth-agreement { margin-top: 8px; }
.auth-register .auth-action { margin-top: 4px; }
.auth-register-oauth { margin-top: 8px; }
.auth-register-oauth .or-split { margin: 8px 0; font-size: 10px; }
.auth-register-oauth .social-row { max-width: 240px; margin: 0 auto; }
.auth-register-oauth .social-btn { flex: 0 1 100%; font-size: var(--fs-xs); color: var(--c-mute); }
.auth-source-pad .auth-head p { margin-top: 4px; }
.auth-verify .auth-head, .auth-forgot .auth-head { margin-top: 16px; }
.auth-verify .code-grid { margin-top: 24px; }
.auth-verify .auth-otp-error { margin-top: 14px; }
.auth-verify .resend-row { margin-top: 14px; }
.auth-verify .auth-action { margin-top: 24px; }
.auth-verify .auth-action + .btn, .auth-forgot .auth-action + .btn { margin-top: 12px; }
.auth-forgot .auth-source-field { margin-top: 24px; }
.auth-forgot .auth-source-field + p { margin-top: 5px; }
.auth-forgot .auth-action { margin-top: 20px; }
.auth-forgot .auth-source-pad > .notice { margin-top: 24px; }
.auth-reset .auth-head + .auth-password { margin-top: 20px; }
.auth-reset .auth-password + .auth-password { margin-top: 16px; }
.auth-reset .auth-password + p { margin-top: 5px; }
.auth-reset .auth-source-pad > .notice { margin-top: 8px; }
.auth-reset .auth-action { margin-top: 20px; }
.auth-cb-logo-wrap { margin-bottom: 24px; }
.auth-cb-core > p { margin-top: 8px; }
.auth-cb-labels { margin-top: 12px; }
@container (max-width: 880px) {
  .auth-register .auth-mini-nav { background: transparent; }
}
.auth-family .auth-source-field > span { margin-bottom: 7px; font-weight: var(--fw-medium); color: var(--c-ink-soft); }
.auth-family .auth-source-field .input { height: 48px; min-height: 48px; padding: 0 14px; line-height: 48px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); }
.auth-family .auth-password .input { padding-right: 46px; }
.auth-family .input-row .send-code { min-height: 48px; }
.auth-family .social-btn .sb-ico { width: 20px; height: 20px; }

/* Source send-code accessories, DS255–310: REGISTER base, LOGIN small.
   Native button min-height48 is an accessible interaction adaptation, not a
   source primary-height override. Intrinsic copy widths follow the source. */
.auth-family .input-row .send-code {
  height: auto; min-height: 48px; min-width: 0; width: auto;
  padding: 13px 22px; gap: 7px; border: 1.5px solid transparent;
  border-radius: var(--r-pill); font-size: var(--fs-md);
  font-weight: var(--fw-semibold); line-height: 1.5; box-sizing: border-box;
  white-space: nowrap; background: var(--c-primary-50);
  color: var(--c-primary-600); box-shadow: none; transition: transform 0.15s;
}
.auth-family .input-row .send-code.btn-sm { padding: 8px 15px; font-size: var(--fs-sm); }
.auth-family .input-row .send-code:active { transform: scale(0.96); }
.auth-family .input-row .send-code:disabled { color: var(--c-primary-600); opacity: .42; }

/* Full-source follow-up to Task18, TT 2c0998cd. Auth opt-in only: the shared
   Web/Admin kit keeps its own button contract and frozen styles. */
.auth-family .btn-primary {
  height: auto; min-height: 0; padding: 13px 22px; gap: 7px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.5;
  box-sizing: border-box;
}
.auth-family .btn-ghost {
  height: auto; min-height: 0; padding: 13px 22px; gap: 7px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.5;
  box-sizing: border-box;
}
.auth-family .btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); }
.auth-family .btn-ghost { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); box-shadow: none; }
.auth-family .btn-primary.btn-lg { padding: 15px 26px; font-size: 16px; }
.auth-family .btn-ghost.btn-lg { padding: 15px 26px; font-size: 16px; }
.auth-family .method-tabs { padding: 4px; gap: 4px; border-radius: var(--r-pill); overflow: hidden; }
.auth-family .method-tabs button { padding: 9px 4px; border-radius: var(--r-pill); min-width: 0; font-weight: var(--fw-medium); }
.auth-family .auth-agreement { font-size: var(--fs-sm); color: var(--c-text); align-items: flex-start; }
.auth-family .auth-agreement .auth-link { font-size: inherit; padding: 0; line-height: inherit; }
.auth-login .auth-agreement { justify-content: center; }
.auth-login .auth-head { margin-bottom: 16px; }
.auth-login .auth-head p { margin-top: 4px; }
.auth-login .method-tabs { margin-bottom: 0; }
.auth-login .auth-form { margin-top: 20px; }
/* Existing gap16 reserves the field bottom; primary mt16 completes source32. */
.auth-login .auth-otp-field + .auth-action { margin-top: 16px; }
.auth-login .or-split { margin: 22px 0 4px; }
.auth-login .social-row { margin-top: 14px; }
.auth-family .social-btn { gap: 8px; color: var(--c-ink); }
.auth-register-oauth .social-btn { color: var(--c-mute); }
.auth-field-hint { display: block; font-size: var(--fs-xs); color: var(--c-mute); margin-top: 5px; line-height: 1.5; }
/* Source fields reserve bottom16, then checkbox mt8 and primary mt20.
   No additional flex gap around the nested nickname hint or these sections. */
.auth-register .auth-form { gap: 0; }
.auth-register .auth-form > .auth-source-field, .auth-register .auth-form > .auth-password { margin-bottom: 16px; }
.auth-register .auth-action { margin-top: 20px; }
.auth-forgot .auth-source-field { margin-bottom: 16px; }
.auth-family .code-grid { gap: 10px; justify-content: center; }
.auth-family .code-cell { width: 46px; min-width: 46px; height: 54px; flex: 0 0 46px; box-sizing: border-box; font-weight: var(--fw-bold); }
.auth-cb-logo { box-shadow: var(--sh-primary); }
.auth-cb-core { --c-line: #ebecf3; --fs-xs: 11px; }
.auth-cb-steps span { background: var(--c-line); font-weight: var(--fw-semibold); }
.auth-cb-steps i { border-radius: 1px; }
.auth-cb-core > p { font-size: var(--fs-sm); color: var(--c-mute); }
.auth-callback { padding: 0; }
.auth-cb-core { box-sizing: border-box; padding: 0 40px; }
@container (max-width: 880px) {
  .auth-family { --fs-h1: 22px; --fs-h2: 19px; --fs-h3: 17px; --fs-lg: 16px; --fs-xs: 11px; }
  .auth-family .auth-mini-nav {
    height: calc(50px + env(safe-area-inset-top)); min-height: 50px;
    padding: 0 8px; padding-top: env(safe-area-inset-top); gap: 8px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-line); flex-shrink: 0;
    position: sticky; top: 0; z-index: 100;
  }
  .auth-family .auth-mini-nav > .auth-link {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px;
    padding: 0; background: transparent; color: var(--c-ink);
  }
  .auth-family .auth-mini-nav > span { flex: 1; text-align: center; font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: var(--c-ink); }
  .auth-register .auth-mini-nav { background: transparent; backdrop-filter: none; border: none; }
  .auth-register .auth-mini-nav > .auth-link { margin-left: -4px; }
  .auth-register:has(.on-dark) .auth-mini-nav { position: absolute; }
  .auth-register:has(.on-dark) .auth-mini-nav > .auth-link { background: rgba(255,255,255,.14); color: #fff; }
}

@container (max-width: 880px) {
  .auth-simple .auth-mini-nav.is-scrolled { box-shadow: 0 3px 14px rgba(26, 28, 46, 0.07); transition: box-shadow 0.2s ease; }
}
