/* Production authentication skin. Forms and provider callbacks stay unchanged. */
:root { --login-bg:#f5f4ee; --login-panel:#fffefa; --login-ink:#192e2c; --login-muted:#536159; --login-line:#829187; --login-accent:#326855; --login-button:#192e2c; --login-on-button:#fffefa; }
:root[data-login-theme="dark"] { --login-bg:#14201d; --login-panel:#1e302b; --login-ink:#f2f2e9; --login-muted:#bac8bd; --login-line:#7f9487; --login-accent:#eac77d; --login-button:#eac77d; --login-on-button:#192e2c; }
* { box-sizing:border-box; }
body { background:var(--login-bg); color:var(--login-ink); padding:64px 18px 32px; }
.auth-shell { width:min(920px,100%); min-height:600px; border:1px solid var(--login-line); border-radius:20px; background:var(--login-panel); box-shadow:0 20px 70px #10251c15; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
.hero { padding:44px 36px; background:transparent; border-right:1px solid var(--login-line); }
.hero-stack { gap:24px; }
.brand-mark { background:transparent; color:var(--login-accent); border:1px solid var(--login-line); box-shadow:none; }
h1 { font:42px/1.12 Georgia,serif; letter-spacing:-1px; margin:14px 0; }
h2 { font-size:34px; line-height:1.15; }
.hero-copy,.muted,.secondary-note { color:var(--login-muted); }
.eyebrow,a { color:var(--login-accent); }
.card { padding:40px; min-width:0; }
.field-stack { gap:8px; }
label { font-size:14px; font-weight:600; margin-top:12px; }
input { margin:0; font-size:16px; border-radius:8px; border:1px solid var(--login-line); background:var(--login-panel); color:var(--login-ink); }
input::placeholder { color:var(--login-muted); opacity:1; }
button { border-radius:8px; background:var(--login-button); color:var(--login-on-button); padding:14px; }
.card > button[type="submit"] { margin-top:24px; }
button:hover { filter:brightness(.95); }
a { text-underline-offset:4px; }
input:focus-visible,button:focus-visible,a:focus-visible { outline:3px solid var(--login-accent); outline-offset:3px; }
.theme-toggle { padding:0; background:var(--login-panel); color:var(--login-ink); border-color:var(--login-line); }
.card > .auth-notice { color:var(--login-ink) !important; background:var(--login-bg); padding:12px; border-left:3px solid var(--login-accent); border-radius:5px; }
#socialAuth { width:100%; }
#socialAuth > div:first-child { color:var(--login-muted) !important; }
#socialStatus { color:var(--login-ink); }
@media(max-width:700px) { .auth-shell { grid-template-columns:1fr; min-height:0; max-width:480px; } .hero { padding:24px; border-right:0; border-bottom:1px solid var(--login-line); } .hero-stack { grid-template-columns:48px 1fr; gap:16px; align-items:center; } .brand-mark { width:48px; height:48px; border-radius:12px; } .hero-copy,.hero > .muted { display:none; } h2 { font-size:24px; } .hero .eyebrow { font-size:10px; } .card { padding:28px 24px; } h1 { font-size:36px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none !important; } }

/* Helios horizon sun: scalable vector, with an open horizon through the disc. */
.hero .brand-mark { width:72px; height:72px; border:0; border-radius:0; background:none; font-size:0; color:#aa7524; box-shadow:none; }
.hero .brand-mark::before { content:""; display:block; width:64px; height:64px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M30%202h4l1%2012h-6zm0%2048h4l1%2012h-6zM2%2030v4l12%201v-6zm48%200v4l12%201v-6zM9.4%2012.2l2.8-2.8%209.2%207.8-4.2%204.2zm33.2%2034.6%204.2-4.2%207.8%209.2-2.8%202.8zM51.8%209.4l2.8%202.8-7.8%209.2-4.2-4.2zM17.2%2042.6l4.2%204.2-9.2%207.8-2.8-2.8z%22%2F%3E%3Cpath%20d%3D%22M18%2031a14%2014%200%200%201%2028%200zm.3%205h27.4a14%2014%200%200%201-27.4%200z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M30%202h4l1%2012h-6zm0%2048h4l1%2012h-6zM2%2030v4l12%201v-6zm48%200v4l12%201v-6zM9.4%2012.2l2.8-2.8%209.2%207.8-4.2%204.2zm33.2%2034.6%204.2-4.2%207.8%209.2-2.8%202.8zM51.8%209.4l2.8%202.8-7.8%209.2-4.2-4.2zM17.2%2042.6l4.2%204.2-9.2%207.8-2.8-2.8z%22%2F%3E%3Cpath%20d%3D%22M18%2031a14%2014%200%200%201%2028%200zm.3%205h27.4a14%2014%200%200%201-27.4%200z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; }
:root[data-login-theme="dark"] .hero .brand-mark { color:#eac77d; }
@media(max-width:700px) { .hero .brand-mark { width:48px; height:48px; } .hero .brand-mark::before { width:46px; height:46px; } }

/* Authentication controls share one rhythm and keep optional setup out of the way. */
.card .field-stack { gap:8px; }
.card .field-stack > label:not(:first-child) { margin-top:12px; }
.card .field-stack input { margin-top:0; min-height:48px; }
.card .secondary-note { margin:14px 0 0; }
.card #socialAuth { max-width:none !important; margin:24px 0 0 !important; }
.card .password-field { position:relative; }
.card .password-field input { padding-right:56px; }
.card .password-toggle { position:absolute; right:3px; top:2px; width:44px; height:44px; min-height:44px; margin:0; padding:12px; display:flex; align-items:center; justify-content:center; border:0; border-radius:8px; background:transparent; color:var(--login-muted); box-shadow:none; }
.card .password-toggle:hover { color:var(--login-ink); background:transparent; }
.card .password-toggle:focus-visible { outline:2px solid var(--login-ink); outline-offset:-3px; }
.card .password-toggle .eye-slash { display:none; }
.card .password-toggle[aria-pressed="true"] .eye-slash { display:block; }
.auth-code-disclosure { margin-top:16px; text-align:left; color:var(--login-muted); font-size:.85rem; }
.auth-code-disclosure summary { cursor:pointer; min-height:44px; display:flex; align-items:center; text-decoration:underline; }
.auth-code-disclosure p { line-height:1.5; }
.auth-code-disclosure label { display:block; }
.auth-help { margin:20px 0 0; font-size:.85rem; color:var(--login-muted); }

/* Recovery and support stay understated while offering a full touch target. */
.card .secondary-note a, .card .auth-help a {
  display:inline-flex; align-items:center; min-height:44px; max-width:100%;
  padding:8px 0; overflow-wrap:anywhere; line-height:1.5;
}

/* Authentication controls meet the same minimum touch size as recovery links. */
.theme-toggle { width:44px; height:44px; min-width:44px; min-height:44px; }
#appleSignInBtn { min-height:44px; }

/* Keep appearance control in the reserved top gutter as the form scrolls. */
body { position:relative; }
#loginThemeToggle { position:absolute; margin:0; }
#socialCodeInput { min-height:44px; }
