.auth-page { min-height: 100vh; min-height: 100dvh; }
.auth-main { display: grid; justify-items: center; padding: clamp(32px, 9vh, 96px) 0 48px; }
.auth-card { width: min(100%, 440px); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 18px 54px rgb(24 44 76 / 9%), 0 2px 6px rgb(24 44 76 / 4%); }
.auth-heading { padding: 30px 32px; color: #f5f8ff; background: radial-gradient(ellipse at top right, #254974, transparent 70%), #101d31; }
.auth-heading h1 { font-size: clamp(25px, 3.5vw, 32px); line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
.auth-heading p { margin-top: 8px; color: #c5d4e9; font-size: 14px; }
#auth { display: grid; gap: 20px; padding: 28px 32px 30px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { font-size: 14px; font-weight: 600; }
.auth-field input { box-sizing: border-box; width: 100%; height: 46px; padding: 0 12px; border: 1px solid #ababB6; border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: 16px; }
.auth-field input:focus-visible { outline: 3px solid rgb(10 99 229 / 20%); outline-offset: 1px; border-color: var(--blue); }
.auth-field input[aria-invalid="true"] { border-color: #ae3439; }
.password-control { position: relative; }
.password-control input { padding-right: 65px; }
#show-password { position: absolute; right: 3px; top: 3px; bottom: 3px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--blue-dark); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
#show-password:hover { background: var(--pale); }
.field-hint, .field-error { font-size: 13px; line-height: 1.5; }
.field-hint { color: var(--muted); }
.field-error, #notice { color: #a32930; }
#notice:empty { display: none; }
#notice { padding: 10px 12px; border-radius: 8px; background: #fceeed; font-size: 14px; }
.auth-submit { width: 100%; min-height: 46px; font-family: inherit; font-size: 15px; cursor: pointer; }
.auth-submit:disabled { opacity: .7; transform: none; cursor: wait; }
.auth-switch { margin: 0 32px; padding: 17px 0 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 14px; }
.auth-switch a { display: inline-block; padding: 4px; color: var(--blue-dark); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .auth-main { padding-top: 26px; }
  .auth-heading { padding: 23px 22px; }
  #auth { padding: 23px 22px 24px; }
  .auth-switch { margin-inline: 22px; }
  .auth-card { border-radius: 16px; }
}
