/* Scoped to the shared authentication frame. */
.auth-main { --auth-bg:#fff; --auth-ink:#172c35; --auth-muted:#63767b; --auth-line:#dce5e4; --auth-field:#f8faf9; --kh-focus:#267d6e; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); min-height:100vh; min-height:100dvh; padding:0; background:var(--auth-bg); color:var(--auth-ink); align-items:stretch; }
.auth-story { position:relative; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:44px clamp(32px,4.5vw,84px) 28px; background:#112d32; color:#f3faf7; isolation:isolate; }
.auth-story::before { content:''; position:absolute; z-index:-1; inset:0; background:radial-gradient(ellipse at 0 95%,#285b55 0,transparent 55%),radial-gradient(ellipse at 100% 0,#214248 0,transparent 55%); }
.auth-story::after { content:''; position:absolute; z-index:-1; width:700px; height:700px; border:1px solid #ffffff08; border-radius:50%; left:-320px; top:80px; box-shadow:0 0 0 75px #ffffff03,0 0 0 150px #ffffff03; pointer-events:none; }
.auth-brand { display:inline-flex; align-items:center; align-self:flex-start; gap:13px; font-size:31px; font-weight:700; line-height:1.3; }
.auth-brand-mark { width:48px; height:48px; display:grid; place-items:center; border:1px solid #a7dfc94d; border-radius:15px; background:#a7dfc914; color:#a7dfc9; }
.auth-brand-en { display:block; color:#a5bab7; font-size:11px; letter-spacing:3px; font-weight:400; }
.auth-story-body { padding:clamp(32px,6vh,64px) 0; max-width:520px; width:100%; margin-inline:auto; }
.auth-eyebrow { display:flex; align-items:center; gap:9px; color:#b9d8cf; font-size:15px; }
.auth-eyebrow > span { width:6px; height:6px; background:#a7dfc9; border-radius:50%; box-shadow:0 0 0 4px #a7dfc912; }
.auth-story h2 { margin:24px 0 20px; font-size:clamp(36px,3.8vw,61px); line-height:1.55; letter-spacing:-1.7px; font-weight:600; }
.auth-story h2 em { color:#a7dfc9; font-style:normal; }
.auth-story-copy { color:#b9ccca; font-size:15px; line-height:2; }
.auth-preview { margin-top:40px; padding:22px; background:#ffffff07; border:1px solid #b6dfd52b; border-radius:18px; box-shadow:0 20px 60px #001d201f; transform:rotate(-2deg); }
.auth-preview-top { display:flex; justify-content:space-between; color:#c2d7d2; font-size:12px; }
.auth-preview-top > span:first-child { display:flex; align-items:center; gap:8px; }
.auth-preview-dots { letter-spacing:3px; }
.auth-preview-item { display:flex; align-items:center; gap:12px; margin:20px 0; }
.auth-preview-symbol { background:#a7dfc917; color:#b9e5d5; border-radius:12px; padding:12px; }
.auth-preview-item strong { display:block; font-size:14px; font-weight:500; }
.auth-preview-item div > span { display:block; font-size:11px; color:#a8c3bc; margin-top:3px; }
.auth-preview-badge { margin-inline-start:auto; background:#a7dfc917; border:1px solid #a7dfc92b; color:#b9e5d5; font-size:10px; border-radius:20px; padding:3px 10px; white-space:nowrap; }
.auth-journey { display:flex; align-items:center; gap:10px; padding-top:16px; border-top:1px solid #ffffff10; font-size:11px; color:#a8c3bc; }
.auth-journey > span { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.auth-journey i { flex:1; height:1px; background:#a7dfc931; }
.auth-journey .auth-journey-current { color:#c6eddd; }
.auth-pillars { display:flex; gap:22px; margin-top:32px; color:#b3cbc5; font-size:15px; }
.auth-pillars > span { display:flex; align-items:center; gap:7px; }
.auth-story-footer { font-size:15px; color:#94b2ab; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.auth-story-footer span { font-size:8px; letter-spacing:1.4px; }
.auth-form-panel { display:flex; flex-direction:column; padding:40px clamp(28px,5vw,90px) 26px; min-width:0; }
.auth-form-top { display:flex; justify-content:space-between; gap:16px; font-size:15px; color:var(--auth-muted); }
.auth-private { display:flex; align-items:center; gap:6px; }
.auth-box { width:100%; min-width:0; max-width:400px; margin:auto; padding:clamp(24px,6vh,64px) 0; }
.auth-heading-icon { display:grid; place-items:center; width:48px; height:48px; background:#eaf4ef; border:1px solid #dcece3; color:#276553; border-radius:15px; margin-bottom:26px; }
.auth-main .auth-kicker { font-size:15px; color:var(--auth-muted); margin-bottom:8px; }
.auth-main .text-display { font-family:var(--kh-font-ui); font-size:30px; font-weight:600; line-height:1.6; letter-spacing:-.7px; }
.auth-main .auth-subtitle { font-size:13px; line-height:1.9; margin-top:8px; color:var(--auth-muted); }
.auth-main .auth-content { margin-top:32px; }
.auth-main .form-stack { gap:22px; }
.auth-main .field-label { color:var(--auth-ink); font-size:16px; margin-bottom:9px; }
.auth-main .field { min-height:54px; border-radius:10px; border:1px solid var(--auth-line); background:var(--auth-field); padding:12px 16px; color:var(--auth-ink); font-size:14px; transition:border-color .15s,box-shadow .15s; }
.auth-main .field::placeholder { color:#82938f; font-size:12px; }
.auth-main .field:focus { border-color:#398c78; box-shadow:0 0 0 3px #398c7814; outline:none; }
.auth-main .field[aria-invalid=true] { border-color:var(--kh-danger); }
.auth-label-row { display:flex; justify-content:space-between; gap:4px 12px; align-items:baseline; flex-wrap:wrap; }
.auth-label-row > a { display:inline-flex; align-items:center; min-height:44px; margin-block:-10px 0; color:#28745f; font-size:12px; }
.auth-main a:hover { text-decoration:underline; text-underline-offset:4px; }
.auth-main .auth-brand:hover { text-decoration:none; }
.auth-password { position:relative; }
.auth-password .field { padding-left:68px; }
.auth-password-toggle { position:absolute; left:4px; top:3px; min-width:58px; min-height:48px; padding:8px; color:var(--auth-muted); font-size:11px; border-radius:8px; }
.auth-password-toggle:hover { color:var(--auth-ink); background:#398c780a; }
.auth-main .btn-primary { min-height:54px; border-radius:10px; background:#17493e; border-color:#17493e; color:#fff; gap:10px; font-size:17px; box-shadow:0 5px 12px #17493e12; }
.auth-main .btn-primary:hover { background:#226251; border-color:#226251; }
.auth-main .btn-primary.is-pending { opacity:.7; }
.auth-main .auth-account-help { padding-top:22px; border-top:1px solid var(--auth-line); text-align:center; font-size:14px; line-height:1.9; color:var(--auth-muted); }
.auth-form-footer { text-align:center; color:var(--auth-muted); font-size:15px; }
.auth-form-footer > span { margin:0 10px; color:#9ab9ad; }
.auth-main .card { background:var(--auth-field); border-color:var(--auth-line); border-radius:12px; }
.auth-main .text-ink-2,.auth-main .text-muted,.auth-main .field-hint { color:var(--auth-muted); }
.auth-main .link-muted { color:var(--auth-muted); font-size:12px; }
.auth-main .notice { background:var(--auth-field); border-color:var(--auth-line); color:var(--auth-ink); font-size:13px; line-height:1.9; }
.auth-main .notice > svg { display:inline-block; vertical-align:middle; }
.auth-main .ws-link { background:var(--auth-field); border-color:var(--auth-line); border-radius:12px; padding:18px; }
.auth-main .ws-link:hover { border-color:#398c78; text-decoration:none; }
.auth-main .btn-ghost,.auth-main .btn-secondary { color:var(--auth-ink); border-color:var(--auth-line); border-radius:10px; }
.auth-story { min-width:0; }
.auth-story > .auth-brand,.auth-story-footer { width:100%; max-width:520px; margin-inline:auto; }
.auth-main .auth-content,.auth-main .card,.auth-main .ws-name { min-width:0; overflow-wrap:anywhere; }
.auth-main .ws-link { min-width:0; }
.auth-main .link-muted,.auth-main .btn-text { display:inline-flex; align-items:center; justify-content:center; min-height:44px; }
.auth-main .btn { white-space:normal; overflow-wrap:anywhere; }
.auth-main .auth-form-footer { padding-bottom:env(safe-area-inset-bottom,0px); }
@media (min-width:961px) and (max-height:800px) {
  .auth-story { padding-block:28px 22px; }
  .auth-story-body { padding-block:28px; }
  .auth-story h2 { font-size:clamp(34px,3.4vw,48px); margin-block:16px 12px; }
  .auth-preview { margin-top:24px; }
  .auth-pillars { margin-top:22px; }
  .auth-form-panel { padding-block:24px 20px; }
  .auth-box { padding-block:24px; }
  .auth-heading-icon { margin-bottom:16px; }
  .auth-main .auth-content { margin-top:24px; }
  .auth-main .form-stack { gap:18px; }
}
@media (max-width:1050px) { .auth-story { padding-inline:32px; } .auth-pillars { gap:14px; } .auth-preview { padding:17px; } .auth-preview-badge { display:none; } .auth-story-footer span { display:none; } }
@media (max-width:960px) {
  .auth-main { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; }
  .auth-story { padding:24px; min-height:auto; }
  .auth-brand { font-size:26px; gap:10px; }
  .auth-brand-mark { width:42px; height:42px; border-radius:12px; }
  .auth-story-body { padding:20px 0 6px; }
  .auth-eyebrow { font-size:11px; }
  .auth-story h2 { font-size:28px; line-height:1.5; margin:12px 0 8px; letter-spacing:-.8px; }
  .auth-story h2 br { display:none; }
  .auth-story-copy { font-size:12px; line-height:1.9; }
  .auth-desktop-break,.auth-preview,.auth-pillars,.auth-story-footer { display:none; }
  .auth-form-panel { padding:24px 24px 20px; }
  .auth-form-top { display:none; }
  .auth-box { max-width:440px; padding:12px 0 40px; }
  .auth-heading-icon { display:none; }
  .auth-main .text-display { font-size:26px; }
  .auth-main .auth-content { margin-top:26px; }
  .auth-main .form-stack { gap:20px; }
  .auth-main .field { font-size:16px; }
}
@media (max-width:600px) {
  .auth-story { padding:20px clamp(16px,5vw,24px); }
  .auth-story-body { padding:0; }
  .auth-eyebrow,.auth-story-copy { display:none; }
  .auth-story h2 { font-size:clamp(21px,5.8vw,26px); margin:14px 0 0; letter-spacing:-.4px; }
  .auth-form-panel { padding-inline:clamp(16px,5vw,24px); }
  .auth-box { padding:0 0 24px; }
  .auth-main .auth-subtitle { font-size:13px; }
  .auth-main .auth-account-help { font-size:12px; padding-top:16px; }
  .auth-main .auth-content { margin-top:22px; }
  .auth-main .form-stack { gap:18px; }
  .auth-main .ws-link { padding:14px; gap:10px; }
}
@media (max-width:960px) and (max-height:500px) {
  .auth-story { padding-block:14px; }
  .auth-story-body { display:none; }
  .auth-form-panel { padding-block:20px 16px; }
}
@media (prefers-color-scheme:dark) {
  .auth-main { --auth-bg:#101e23; --auth-ink:#ecf4f0; --auth-muted:#a3b6b3; --auth-line:#34474b; --auth-field:#17292e; --kh-focus:#a7dfc9; }
  .auth-heading-icon { background:#1c3934; border-color:#31564a; color:#b9e5d5; }
  .auth-main .btn-primary { background:#a7dfc9; border-color:#a7dfc9; color:#12342a; }
  .auth-main .btn-primary:hover { background:#c4eddd; border-color:#c4eddd; }
  .auth-label-row > a { color:#a7dfc9; }
}
