.login-page {
  --login-accent: #255cb5;
  --login-ink: #202832;
  --login-muted: #626e7b;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--login-ink);
  background: #f6f7f9;
  -webkit-font-smoothing: antialiased;
}
.login-page [hidden] { display: none !important; }
.login-page header { height: 68px; flex-shrink: 0; padding: 0 28px; gap: 10px; border-color: #e3e7ec; }
.login-page header strong { font-size: 16px; font-weight: 650; }
.login-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--login-accent); color: #fff; }
.login-header-caption { margin-left: auto; color: var(--login-muted); font-size: 12px; }
.login-page main { width: min(100% - 40px, 420px); margin: auto; padding: 48px 0; }
.login-surface { padding: 34px 36px 24px; background: #fff; border: 1px solid #e3e7ec; border-radius: 8px; box-shadow: 0 4px 20px #20283205; }
.login-intro { margin-bottom: 28px; }
.login-lock { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: #edf5f2; color: #367762; margin-bottom: 22px; }
.login-greeting { margin: 0 0 4px; font-size: 13px; color: var(--login-muted); }
.login-page h1 { font-size: 26px; line-height: 1.5; font-weight: 650; margin: 0; }
.login-field { margin-top: 20px; }
.login-page label { font-size: 13px; font-weight: 550; margin: 0 0 8px; }
.login-page input { height: 48px; min-width: 0; padding: 11px 12px; border: 1px solid #bac4cf; border-radius: 5px; font-size: 16px; line-height: 24px; transition: border-color .15s; }
.login-page input:hover { border-color: #8496aa; }
.login-page input:focus { outline: 3px solid #dce8fa; outline-offset: 1px; border-color: var(--login-accent); }
.login-page input[aria-invalid="true"] { border-color: #b54545; }
.login-password { position: relative; }
.login-password.has-toggle input { padding-right: 48px; }
.login-page .login-icon-button { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; display: grid; place-items: center; color: var(--login-muted); background: transparent; border-radius: 4px; }
.login-icon-button > span { display: flex; }
.login-page .login-icon-button:hover { color: var(--login-accent); background: #f0f4fa; }
.login-page button:focus-visible { outline: 3px solid #a7c3ed; outline-offset: 3px; }
.login-page .login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px; margin-top: 28px; border-radius: 5px; background: var(--login-accent); font-size: 14px; font-weight: 600; }
.login-page .login-submit:hover { background: #1d4d9c; }
.login-page .login-submit:disabled { cursor: wait; background: #4b70ad; }
.login-submit-arrow { display: flex; }
.login-submit-arrow svg { width: 17px; height: 17px; }
.login-spinner { width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-error { display: grid; gap: 2px; background: #fff4f2; color: #9d3535; border: 1px solid #f0cdca; border-left: 3px solid #b54545; padding: 11px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 24px; overflow-wrap: anywhere; }
.login-error strong { font-weight: 600; }
.login-caps { font-size: 12px; color: #93610c; margin: 7px 0 0; }
.login-access { display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid #edf0f3; padding-top: 20px; margin: 24px 0 0; color: var(--login-muted); font-size: 12px; }
.login-access svg { width: 15px; height: 15px; color: #367762; }
.login-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 0 20px 24px; color: var(--login-muted); font-size: 11px; text-align: center; }
.login-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login-spinner { animation: none; } .login-page input { transition: none; } }
@media (max-width: 480px) {
  .login-page header { padding: 0 20px; height: 60px; }
  .login-page main { padding: 32px 0; }
  .login-surface { padding: 28px 24px 22px; }
}
@media (max-width: 360px) { .login-surface { padding: 24px 20px; } }
