:root {
  color-scheme: light;
  --blue: #113b64;
  --blue-deep: #0c2e50;
  --orange: #ffad45;
  --orange-hover: #f59c2b;
  --ink: #182d43;
  --muted: #526579;
  --border: #d8e2eb;
  --surface: #f4f7fa;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
a { color: var(--blue); text-underline-offset: .2em; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #176ac1;
  outline-offset: 4px;
}
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px 18px; background: #fff; border: 2px solid var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { max-width: 1240px; min-height: 92px; margin: auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--blue); text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -.7px; }
.brand-symbol { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--blue); font-size: 15px; letter-spacing: -.8px; }
.brand-accent { color: #9b4f00; }
.top-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.top-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 14px; font-size: 14px; font-weight: 650; text-decoration: none; border-radius: 8px; }
.top-nav a:hover { background: var(--surface); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 76px; max-width: 1110px; min-height: calc(100vh - 158px); margin: auto; padding: 36px 40px 64px; }
.account-intro { max-width: 520px; }
.eyebrow { display: block; margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; }
.account-intro h1 { margin: 0 0 23px; color: var(--blue-deep); font-size: clamp(34px, 4.3vw, 51px); font-weight: 750; line-height: 1.15; letter-spacing: -1.7px; }
.intro-copy { margin: 0 0 30px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.independent-account { padding: 20px 22px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--surface); }
.notice-label { color: var(--blue); font-size: 14px; font-weight: 750; }
.independent-account p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.intro-link { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; margin-top: 20px; font-size: 14px; font-weight: 650; text-decoration: none; }
.intro-link:hover { text-decoration: underline; }
.account-card { min-width: 0; padding: 32px; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 15px 48px #123b6410; background: #fff; }
.account-card .eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: 1.2px; }
.account-card h2 { margin: 0 0 9px; color: var(--blue-deep); font-size: 29px; line-height: 1.2; letter-spacing: -.7px; }
.form-description { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.session-status { color: var(--muted); font-size: 14px; }
.form-field { margin-bottom: 19px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.form-field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #b9c9d8; border-radius: 8px; color: var(--ink); background: #fff; }
.form-field input:hover { border-color: #7e9ab4; }
.password-field { display: flex; gap: 8px; align-items: stretch; }
.password-field input { flex: 1; }
.password-toggle { flex: 0 0 auto; min-height: 48px; min-width: 70px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--blue); background: var(--surface); font-size: 12px; font-weight: 700; }
.password-toggle:hover { background: #e7eff7; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.consent-field { margin-bottom: 21px; }
.consent-choice { display: flex; align-items: flex-start; gap: 5px; }
.consent-choice input { flex: 0 0 24px; width: 24px; height: 24px; margin: 10px 5px 0 0; accent-color: var(--blue); }
.consent-choice label { display: flex; align-items: center; min-height: 48px; color: var(--muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.legal-actions { display: flex; flex-wrap: wrap; column-gap: 12px; margin-left: 34px; }
.text-button { min-height: 44px; max-width: 100%; padding: 7px 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: .25em; text-align: left; }
.text-button:hover { color: #0062a3; }
.primary-button { display: flex; align-items: center; justify-content: center; min-height: 50px; width: 100%; padding: 12px 18px; border: 0; border-radius: 9px; background: var(--orange); color: #2d2518; font-size: 15px; font-weight: 750; }
.primary-button:hover:not(:disabled) { background: var(--orange-hover); }
.feedback { margin: 0 0 20px; padding: 12px 14px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.feedback-error { color: #8b2324; border: 1px solid #e9b8b8; background: #fff2f2; }
.submit-status { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.account-switch { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e6edf3; color: var(--muted); font-size: 12px; text-align: center; }
.account-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; font-weight: 750; }
.site-footer { min-height: 66px; padding: 18px 24px; color: var(--muted); text-align: center; font-size: 12px; }
.legal-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 26px; border: 1px solid var(--border); border-radius: 16px; color: var(--ink); background: #fff; overflow-y: auto; }
.legal-dialog::backdrop { background: #0d263fc2; }
.dialog-header { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; margin-bottom: 18px; }
.dialog-header h2 { margin: 6px 0; color: var(--blue); font-size: 22px; line-height: 1.35; }
.dialog-close { display: inline-flex; gap: 8px; align-items: center; flex: 0 0 auto; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--blue); background: var(--surface); font-size: 13px; font-weight: 650; }
.dialog-close span { font-size: 22px; line-height: 1; }
.legal-status { color: var(--muted); font-size: 14px; }
.legal-content { padding: 4px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.secondary-button { min-height: 48px; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue); background: #fff; font-size: 14px; font-weight: 650; }
.secondary-button:hover, .dialog-close:hover { background: #e7eff7; }
@media (max-width: 850px) {
  .account-layout { gap: 32px; padding: 28px 28px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); }
  .site-header { padding: 14px 28px; }
  .account-intro h1 { font-size: 36px; }
  .intro-copy { font-size: 16px; }
  .account-card { padding: 25px; }
}
@media (max-width: 680px) {
  .site-header { min-height: 84px; padding: 12px 20px; gap: 10px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand-symbol { flex-basis: 32px; width: 32px; height: 32px; font-size: 13px; border-radius: 9px; }
  .top-nav { gap: 2px; }
  .top-nav a { padding: 8px 10px; font-size: 12px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; min-height: 0; max-width: 480px; padding: 20px 20px 36px; }
  .account-intro h1 { font-size: 33px; letter-spacing: -1px; margin-bottom: 15px; }
  .account-intro .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .intro-copy { margin-bottom: 20px; font-size: 15px; }
  .independent-account { padding: 15px 17px; }
  .intro-link { margin-top: 8px; }
  .account-card { padding: 25px 22px; border-radius: 15px; }
  .legal-dialog { padding: 20px; }
  .dialog-header { gap: 10px; }
  .dialog-header h2 { font-size: 19px; }
}
@media (max-width: 370px) {
  .site-header { flex-wrap: wrap; gap: 2px; padding: 10px 16px; }
  .top-nav { margin-left: auto; }
  .account-layout { padding: 18px 16px 30px; }
  .account-card { padding: 22px 18px; }
  .account-card h2 { font-size: 27px; }
  .account-intro h1 { font-size: 30px; }
  .dialog-header { flex-wrap: wrap; }
  .dialog-close { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
