/* Sign-in composition follows the supplied reference; selectors stay local to auth. */
.auth-page {
  --auth-ink: #172538;
  --auth-muted: #5d6c7d;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--disclosure-height, 0px));
  min-height: calc(100svh - var(--disclosure-height, 0px));
  color: var(--auth-ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page > *, .auth-visual-inner, .auth-panel, .auth-feature > div { min-width: 0; }
.auth-page p, .auth-page h1, .auth-page h2 { overflow-wrap: anywhere; }
.auth-skip { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 12px 18px; border-radius: 8px; background: white; color: #244c70; transform: translateY(-160%); }
.auth-skip:focus { transform: translateY(0); }
.auth-visual { display: flex; align-items: center; justify-content: center; padding: 64px clamp(28px, 5vw, 96px); color: #fff; background: linear-gradient(131deg, #294a69 0%, #38668f 54%, #60a6df 100%); }
.auth-visual-inner { width: 100%; max-width: 580px; text-align: center; }
.auth-brand { display: flex; flex-direction: column; align-items: center; color: #fff; gap: 38px; width: fit-content; max-width: 100%; margin: 0 auto; text-decoration: none; }
.auth-brand-icon { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 26px; background: #65b2e8; box-shadow: 0 0 0 10px #7ec2ef12, 0 0 0 21px #7ec2ef08; transform: rotate(-30deg); animation: auth-brand-rotate 12s linear infinite; }
@keyframes auth-brand-rotate { from { transform: rotate(-30deg); } to { transform: rotate(330deg); } }
.auth-brand-icon svg { width: 52px; height: 52px; fill: #fff; stroke: none; }
.auth-wordmark { font-size: clamp(36px, 3.5vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -1.7px; }
.auth-tagline { margin: 22px 0 0; color: #e1edf7; font-size: clamp(14px, 1.4vw, 19px); line-height: 1.6; font-weight: 600; letter-spacing: .35px; }
.auth-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.auth-feature { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px; padding: 24px 18px; min-width: 0; border: 1px solid #e4f2ff2e; border-radius: 16px; background: #d5eaff1a; box-shadow: inset 0 1px 0 #ffffff06; }
.auth-feature-icon { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border: 2px solid #c2e4ff40; border-radius: 12px; color: white; background: #9cd3fa14; }
.auth-feature-icon svg { width: 27px; height: 27px; stroke-width: 2; }
.auth-feature h2 { margin: 0 0 8px; color: #fff; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -.2px; }
.auth-feature p { margin: 0; color: #e2eef7; font-size: 13px; line-height: 1.65; }
.auth-records-note { margin: 24px auto 0; max-width: 340px; color: #e2edf6; font-size: 11px; line-height: 1.7; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 64px clamp(28px, 6vw, 112px); min-width: 0; background: #fff; }
.auth-main:focus { outline: none; }
.auth-panel { width: 100%; max-width: 460px; text-align: left; }
.auth-eyebrow { margin: 0 0 12px; color: #4e6b83; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 1.6px; }
.auth-panel h1 { margin: 0 0 12px; color: #142131; font-size: clamp(30px, 2.5vw, 42px); line-height: 1.17; font-weight: 800; letter-spacing: -1.2px; }
.auth-subtitle { margin: 0; color: var(--auth-muted); font-size: 16px; line-height: 1.65; }
.auth-session { margin-top: 18px; color: var(--auth-muted); font-size: 13px; line-height: 1.7; }
.auth-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.auth-form { width: 100%; margin: 0; }
.auth-form .field { gap: 10px; margin-bottom: 20px; }
.auth-form .field label { display: flex; align-items: center; gap: 9px; color: #26374a; font-size: 14px; line-height: 1.5; font-weight: 600; }
.auth-form .field label svg { width: 16px; height: 16px; stroke-width: 2; }
.auth-form .field input { min-width: 0; width: 100%; height: 54px; padding: 14px 16px; border: 1px solid #dce4ee; border-radius: 8px; background: #fff; color: #223449; font-size: 16px; line-height: 1.5; box-shadow: 0 1px 2px #1a2d4403; }
.auth-form .field input::placeholder { color: #7b8796; opacity: 1; }
.auth-form .field input:focus { border-color: #438bbb; box-shadow: 0 0 0 3px #59a9df22; }
.auth-controls .button { min-height: 48px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.5; padding: 12px 20px; }
.auth-controls .primary { color: #fff; border: 1px solid transparent; background: linear-gradient(105deg, #2d7dad, #2e7d96); }
.auth-form .auth-submit { width: 100%; min-height: 56px; margin-top: 2px; gap: 11px; background: linear-gradient(105deg, #438fc8, #419bb3); box-shadow: 0 8px 22px #5aa8d925; font-size: 20px; font-weight: 700; }
.auth-submit svg { width: 20px; height: 20px; stroke-width: 2.5; }
.auth-controls .primary:hover:not(:disabled) { background: linear-gradient(105deg, #226a99, #266b81); }
.auth-page :is(a, button, summary):focus-visible { outline: 3px solid #1d6a9f; outline-offset: 4px; }
.auth-visual a:focus-visible { outline-color: #fff; }
.auth-form .form-error { margin: 0 0 20px; color: #a12d35; padding: 12px 14px; border: 1px solid #f0cfd3; border-radius: 8px; background: #fff5f5; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-access-help { margin-top: 22px; }
.auth-access-help summary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid #dce7f0; border-radius: 9px; background: #f8fbfd; color: #386b91; font-size: 13px; line-height: 1.6; font-weight: 600; cursor: pointer; list-style: none; text-align: center; }
.auth-access-help summary::-webkit-details-marker { display: none; }
.auth-access-help summary::after { content: '+'; font-size: 20px; line-height: 1; }
.auth-access-help[open] summary::after { content: '−'; }
.auth-access-help > p { margin: 12px 2px 0; color: var(--auth-muted); font-size: 13px; line-height: 1.75; }
.auth-legal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 12px; margin-top: 18px; color: #758292; font-size: 12px; line-height: 1.7; text-align: center; }
.auth-legal a, .auth-home { display: inline-flex; align-items: center; min-height: 44px; color: #406a8c; text-decoration: underline; text-underline-offset: 3px; }
.auth-draft-label { flex-basis: 100%; color: #657485; font-size: 11px; }
.auth-home { width: fit-content; max-width: 100%; margin: 10px auto 0; font-size: 12px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .auth-visual { padding: 48px 30px; }
  .auth-main { padding: 48px 36px; }
  .auth-features { gap: 14px; }
  .auth-feature { padding: 22px 14px; }
  .auth-feature h2 { font-size: 14px; }
  .auth-feature p { font-size: 12px; }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-visual { padding: 38px 30px 28px; }
  .auth-visual-inner { max-width: 560px; }
  .auth-brand { flex-direction: row; gap: 24px; }
  .auth-brand-icon { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 6px #7ec2ef12, 0 0 0 12px #7ec2ef08; }
  .auth-brand-icon svg { width: 29px; height: 29px; }
  .auth-wordmark { font-size: 32px; letter-spacing: -1px; }
  .auth-tagline { margin-top: 16px; font-size: 14px; }
  .auth-features { margin-top: 26px; gap: 12px; }
  .auth-feature { flex-direction: row; gap: 12px; padding: 15px; text-align: left; border-radius: 12px; }
  .auth-feature-icon { width: 38px; height: 38px; border-radius: 10px; }
  .auth-feature-icon svg { width: 21px; height: 21px; }
  .auth-feature h2 { font-size: 13px; margin-bottom: 4px; }
  .auth-feature p { font-size: 11px; }
  .auth-records-note { margin-top: 18px; max-width: none; }
  .auth-main { padding: 40px 30px max(32px, env(safe-area-inset-bottom)); }
  .auth-panel { max-width: 460px; }
}
@media (max-width: 480px) {
  .auth-visual { padding: 28px 20px 22px; }
  .auth-brand { gap: 20px; }
  .auth-brand-icon { width: 40px; height: 40px; border-radius: 11px; }
  .auth-brand-icon svg { width: 23px; height: 23px; }
  .auth-wordmark { font-size: 28px; letter-spacing: -.8px; }
  .auth-tagline { margin-top: 14px; font-size: 12px; }
  .auth-features { margin-top: 20px; gap: 8px; }
  .auth-feature { gap: 8px; padding: 11px 9px; align-items: center; }
  .auth-feature-icon { width: 25px; height: 25px; border: 0; border-radius: 0; background: none; }
  .auth-feature-icon svg { width: 20px; height: 20px; }
  .auth-feature h2 { font-size: 11px; line-height: 1.5; margin: 0; }
  .auth-feature p { display: none; }
  .auth-records-note { font-size: 10px; line-height: 1.6; margin-top: 14px; }
  .auth-main { padding: 32px 22px max(28px, env(safe-area-inset-bottom)); }
  .auth-panel h1 { font-size: 30px; }
  .auth-subtitle { font-size: 14px; }
  .auth-controls { margin-top: 26px; }
}
@media (max-height: 650px) and (min-width: 901px) {
  .auth-visual, .auth-main { padding-top: 36px; padding-bottom: 36px; }
  .auth-brand { gap: 24px; }
  .auth-brand-icon { width: 64px; height: 64px; border-radius: 18px; }
  .auth-brand-icon svg { width: 36px; height: 36px; }
  .auth-tagline { margin-top: 14px; }
  .auth-features { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { animation: none; transition: none; scroll-behavior: auto; } }
@media print { .auth-page { display: block; } .auth-visual, .auth-skip { display: none; } .auth-main { padding: 24px; } }
