/* Login-only 3D cartoon system: a shared light source and soft, rounded surfaces. */
body.login-page {
  --text: #edf4ff;
  --text-soft: #bfcee5;
  --text-faint: #adc0dc;
  --accent: #b7ccff;
  --accent-soft: rgba(164,190,255,.13);
  --line: rgba(190,210,245,.18);
  --login-frame: #1c3152;
  --login-input: #152844;
  --login-border: #6884ab;
  --login-story-top: #2d4e7b;
  --login-story-bottom: #223a65;
  --login-edge: #0f213a;
  --login-shadow: rgba(0,8,25,.3);
  display: flex; min-height: 100svh; flex-direction: column; justify-content: center;
  position: relative; isolation: isolate; padding: 32px;
  background: radial-gradient(ellipse at 16% 14%, color-mix(in srgb, var(--scene-tint) 20%, transparent), transparent 50%), #11243e;
  font-weight: 400;
}
:root[data-theme="light"] body.login-page {
  --text: #20385c;
  --text-soft: #4b6383;
  --text-faint: #586d8a;
  --accent: #3159bb;
  --accent-soft: rgba(53,97,196,.08);
  --line: #dfe8f5;
  --login-frame: #ffffff;
  --login-input: #f3f7fd;
  --login-border: #7b8fab;
  --login-story-top: #e5edff;
  --login-story-bottom: #d6e7fc;
  --login-edge: #c4d4ee;
  --login-shadow: rgba(49,86,150,.14);
  background: radial-gradient(ellipse at 16% 6%, #f5f9ff, transparent 48%), radial-gradient(ellipse at 90% 90%, #dee5fc, transparent 45%), #eaf2fd;
}
.login-page::after { position: fixed; z-index: -1; content: ""; pointer-events: none; border-radius: 50%; }
.login-page::after { width: clamp(130px,16vw,250px); aspect-ratio: 1; bottom: -60px; left: -45px; background: radial-gradient(circle at 28% 23%, #a7cbff, #6b9fea 48%, #3b65b3); box-shadow: inset -10px -18px 35px rgba(25,61,145,.2), 8px 12px 45px rgba(81,118,182,.17); opacity: .6; }
.login-page .seasonal-backdrop { z-index: -1; }
.login-page .seasonal-backdrop > :not(.seasonal-sky) { display: none; }
.login-page .seasonal-sky { top: 0; right: -16px; width: clamp(200px,20vw,360px); }
:root[data-decorations="false"] .login-page::after { display: none; }
.login-masthead { position: relative; width: min(100%,1160px); margin: 0 auto 22px; padding: 0 8px; }
.login-page .auth-brand-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; }
.login-page .brand { width: auto; gap: 12px; margin: 0; padding: 0; color: var(--text); }
.login-page .brand__mark { width: 44px; height: 45px; border: 1px solid #fff2b7; border-radius: 14px; background: linear-gradient(145deg,#fff0ae,#ffcf5d); box-shadow: inset 0 2px 2px rgba(255,255,255,.7), 0 4px 0 #dba84a, 0 7px 12px rgba(166,123,45,.16); transform: rotate(-6deg); }
.login-page .brand__mark i { background: #31538c; border-radius: 2px; }
.login-page .brand__copy strong { font-family: inherit; font-size: var(--font-size-content); font-weight: 800; letter-spacing: .06em; text-shadow: none; }
.login-page .brand__copy small { color: var(--text-faint); font-size: var(--font-size-min); letter-spacing: .16em; }
.login-page .auth-utilities { display: flex; align-items: center; gap: 10px; }
.login-page .font-size-control { min-height: 44px; padding: 3px 8px; gap: 7px; color: var(--text-soft); background: var(--login-frame); border: 1px solid var(--login-border); border-radius: 14px; font-weight: 500; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 var(--login-edge); }
.login-page .font-size-control > span { display: inline; font-size: var(--font-size-min); }
.login-page .font-size-control select { min-width: 44px; min-height: 36px; padding: 3px; color: var(--text); background: var(--login-frame); border: 0; }
.login-page .theme-toggle { width: 44px; min-width: 44px; height: 44px; color: #315691; background: linear-gradient(145deg,#edf5ff,#d3e4fe); border: 1px solid #edf5ff; border-radius: 14px; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #adc6e9, 0 5px 10px rgba(57,101,164,.1); transform: none; }
.login-page .theme-toggle:hover { background: #e9f2ff; }
.login-page .auth-page {
  width: min(100%,1160px); min-height: 0; margin: 0 auto; padding: 12px;
  grid-template-columns: minmax(0,1fr) minmax(0,1.04fr); gap: 0; align-items: stretch;
  background: var(--login-frame); border: 2px solid color-mix(in srgb,var(--login-frame) 90%,#fff);
  border-radius: 34px; box-shadow: 0 7px 0 var(--login-edge), 0 24px 60px -12px var(--login-shadow), inset 0 1px 0 rgba(255,255,255,.2);
}
.login-page .auth-panel { order: 2; min-width: 0; min-height: 0; padding: 30px 40px; background: transparent; }
.login-page .auth-box { width: min(100%,390px); padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.login-intro { margin-bottom: 26px; }
.login-intro .eyebrow { margin: 0 0 12px; color: var(--accent); font-size: var(--font-size-min); font-weight: 700; letter-spacing: .14em; }
.login-page .login-intro h1 { font-family: inherit; font-size: calc(var(--font-size-auth-title) * .8); font-weight: 750; line-height: 1.3; letter-spacing: -.025em; text-shadow: none; }
.login-intro > p:last-child { margin: 10px 0 0; color: var(--text-soft); font-size: var(--font-size-content); line-height: 1.7; }
.login-page .auth-form { gap: 18px; }
.login-page .auth-form .validation-summary-valid { display: none; }
.login-page .field { gap: 8px; }
.login-page .field label { color: var(--text); font-weight: 600; }
.login-page :is(#username,#password) { min-height: 50px; padding: 11px 14px; color: var(--text); background: var(--login-input); border: 1px solid var(--login-border); border-radius: 14px; box-shadow: inset 0 2px 4px rgba(33,69,123,.055), 0 1px 0 rgba(255,255,255,.15); font-size: max(1rem,var(--font-size-body)); font-weight: 400; transition: border-color 150ms ease,box-shadow 150ms ease; }
.login-page :is(#username,#password)::placeholder { color: var(--text-faint); font-size: .9em; opacity: 1; }
.login-page :is(#username,#password):focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-password { position: relative; }
.login-page #password { width: 100%; padding-right: 76px; }
.login-password__toggle { position: absolute; top: 3px; right: 4px; min-width: 60px; min-height: 44px; padding: 6px 10px; color: var(--text-soft); background: transparent; border: 0; border-radius: 10px; font-size: var(--font-size-support); font-weight: 500; cursor: pointer; }
.login-password__toggle:hover { color: var(--accent); background: var(--accent-soft); }
.login-password input::-ms-reveal { display: none; }
.login-caps-warning { margin: 0; color: var(--amber); font-size: var(--font-size-support); line-height: 1.5; }
.login-remember .checkbox-row { min-height: 30px; align-items: center; color: var(--text-soft); font-size: var(--font-size-support); cursor: pointer; }
.login-remember input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #5279d8; }
.login-remember .field-help { margin: 2px 0 0 27px; font-size: var(--font-size-min); line-height: 1.6; }
.login-page .auth-form .login-submit { min-height: 50px; margin-top: 2px; color: #31435e; background: linear-gradient(180deg,#ffe998,#ffd15c); border: 1px solid #fff0b4; border-radius: 15px; box-shadow: inset 0 2px 1px rgba(255,255,255,.75), 0 4px 0 #dfb14e, 0 8px 16px rgba(181,141,54,.17); font-family: inherit; font-size: var(--font-size-content); font-weight: 750; text-shadow: none; transition: background 150ms ease,box-shadow 150ms ease; }
.login-page .auth-form .login-submit:hover { color: #263b5b; background: linear-gradient(180deg,#ffedaa,#ffda76); border-color: #fff0b4; box-shadow: inset 0 2px 1px rgba(255,255,255,.8), 0 4px 0 #dfb14e, 0 10px 20px rgba(181,141,54,.2); transform: none; }
.login-page .auth-form .login-submit:active { background: #ffd777; box-shadow: inset 0 2px 3px rgba(140,104,35,.14), 0 1px 0 #dfb14e; transform: translateY(2px); }
.login-submit__idle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 16px; }
.login-submit__pending { display: none; }
.auth-form[aria-busy="true"] .login-submit__idle { display: none; }
.auth-form[aria-busy="true"] .login-submit__pending { display: inline; }
.login-support { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--font-size-support); }
.login-help summary { display: flex; min-height: 44px; align-items: center; gap: 8px; color: var(--text-soft); font-weight: 500; cursor: pointer; list-style: none; border-radius: 5px; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary::marker { content: ""; }
.login-help summary > span { margin-left: auto; color: var(--text-soft); }
.login-help summary > i { width: 7px; height: 7px; margin: 0 4px 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.login-help[open] summary > i { transform: rotate(225deg); margin-bottom: -3px; }
.login-help ol { display: grid; gap: 8px; margin: 6px 0 14px; padding: 12px 16px 12px 34px; color: var(--text-soft); background: var(--accent-soft); border-radius: 14px; line-height: 1.7; }
.login-verification { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 8px; color: var(--text-soft); }
.login-verification a { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.login-verification a:hover { text-decoration: underline; }
.login-page .auth-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 18px; color: var(--text-faint); font-size: var(--font-size-min); }
.login-page .auth-visual, :root[data-theme="light"] .login-page .auth-visual { position: relative; order: 1; display: grid; min-width: 0; min-height: 0; padding: 38px 36px 26px; overflow: visible; color: var(--text); background: linear-gradient(155deg,var(--login-story-top),color-mix(in srgb,var(--scene-tint) 10%,var(--login-story-bottom))); border: 1px solid rgba(255,255,255,.35); border-radius: 24px; box-shadow: inset 0 2px 3px rgba(255,255,255,.35), inset 0 -3px 6px rgba(58,97,160,.07); }
.login-page .auth-visual::before, .login-page .auth-visual::after { display: none; }
.login-page .auth-visual__content { display: flex; width: 100%; max-width: 460px; min-width: 0; height: 100%; flex-direction: column; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-page .auth-visual__content .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--text-soft); font-size: var(--font-size-support); font-weight: 500; letter-spacing: .025em; }
.login-story-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #6388e0; border-radius: 50%; box-shadow: 0 0 0 4px rgba(110,145,220,.12); }
.login-page .auth-visual__content h2 { margin: 0; color: var(--text); font-family: inherit; font-size: clamp(1.7rem,2.65vw,calc(var(--font-size-display) * .56)); font-weight: 700; line-height: 1.5; letter-spacing: -.025em; }
.login-page .auth-visual__content > p:last-of-type { margin: 14px 0 0; color: var(--text-soft); font-size: var(--font-size-content); line-height: 1.85; }
.login-page .auth-seasonal-scene { width: 100%; margin: auto 0; padding: 18px 0 12px; }
.login-page .auth-seasonal-scene img { display: block; width: 100%; height: auto; filter: none; }
.login-page .auth-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 16px 0 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb,var(--text-faint) 20%,transparent); }
.login-page .auth-point { display: flex; min-width: 0; align-items: center; gap: 7px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.login-page .auth-point .login-feature-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: var(--accent); background: color-mix(in srgb,var(--login-frame) 85%,transparent); border: 1px solid color-mix(in srgb,var(--login-frame) 80%,transparent); border-radius: 10px; font-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 3px 0 rgba(96,128,183,.13); }
.login-page .auth-point strong { color: var(--text-soft); font-size: var(--font-size-support); font-weight: 600; }
.login-page :is(button,a,summary,input,select):focus-visible, .login-page :is(#username,#password):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1100px) {
  body.login-page { padding: 24px; }
  .login-page .auth-panel { padding: 28px; }
  .login-page .auth-visual, :root[data-theme="light"] .login-page .auth-visual { padding: 32px 28px 24px; }
  .login-page .auth-point { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 900px) {
  .login-page .auth-page { width: min(100%,480px); grid-template-columns: minmax(0,1fr); padding: 0; border-radius: 28px; }
  .login-masthead { width: min(100%,480px); padding: 0 4px; }
  .login-page .auth-visual, :root[data-theme="light"] .login-page .auth-visual { display: none; }
  .login-page .auth-panel { padding: 32px; }
}
@media (max-width: 540px) {
  body.login-page { padding: 22px 16px 28px; justify-content: flex-start; }
  .login-masthead { margin-bottom: 22px; }
  .login-page .brand { gap: 9px; }
  .login-page .brand__mark { width: 34px; height: 37px; border-radius: 11px; }
  .login-page .brand__copy strong { font-size: var(--font-size-support); }
  .login-page .brand__copy small { font-size: var(--font-size-min); letter-spacing: .08em; }
  .login-page .auth-utilities { gap: 7px; margin-left: auto; }
  .login-page .font-size-control { padding-inline: 3px; }
  .login-page .font-size-control > span { display: none; }
  .login-page .auth-panel { padding: 28px 22px; }
  .login-page .auth-form { gap: 17px; }
  .login-page .login-intro h1 { font-size: calc(var(--font-size-auth-title) * .88); }
  .login-remember .checkbox-row { min-height: 44px; }
  .login-remember .field-help { margin-top: 0; }
}
@media (min-width: 901px) and (max-height: 800px) {
  body.login-page { padding-top: 20px; padding-bottom: 20px; }
  .login-masthead { margin-bottom: 16px; }
  .login-page .auth-panel { padding-top: 22px; padding-bottom: 22px; }
  .login-intro { margin-bottom: 20px; }
  .login-page .auth-form { gap: 14px; }
  .login-support { margin-top: 16px; padding-top: 8px; }
  .login-page .auth-meta { margin-top: 12px; }
  .login-page .auth-visual, :root[data-theme="light"] .login-page .auth-visual { padding-top: 28px; }
}
/* Leave room for the sky between the compact masthead and the login card. */
@media (max-width: 1100px) {
  body.login-page { justify-content: flex-start; }
  .login-masthead { margin-bottom: 84px; }
  .login-page .seasonal-sky { top: 64px; right: 8px; width: 180px; }
  :root[data-decorations="false"] .login-masthead { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .login-page *, .login-page *::before, .login-page *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .login-masthead { margin-bottom: 22px; }
  .login-page::before, .login-page::after { display: none; }
  .login-page :is(button,a,summary,input,select):focus-visible, .login-page :is(#username,#password):focus-visible { outline-color: Highlight; }
  .login-page .auth-page, .login-page .auth-form .login-submit { border: 1px solid ButtonText; }
  .login-page .login-password__toggle { color: ButtonText; }
}
