:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #07111c;
  color: #f2f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bootstrap-accent: #f4c542;
  --bootstrap-panel: #101e2a;
  --bootstrap-line: #344754;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #07111c; }
.protected-auth-page { display: flow-root; }
button, input { font: inherit; }
button { min-height: 42px; padding: .65rem 1rem; border: 1px solid var(--bootstrap-line); border-radius: 8px; background: #172938; color: #f2f5f7; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--bootstrap-accent); }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--bootstrap-accent); outline-offset: 3px; }
::selection { color: #07111c; background: var(--bootstrap-accent); }
[hidden] { display: none !important; }

.protected-shell { width: min(100% - 2rem, 40rem); margin: clamp(1rem, 7vh, 4rem) auto; }
.protected-header { margin-bottom: 1.25rem; }
.protected-header h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; }
.protected-header p { margin: .5rem 0 0; color: #c5d1d8; }
#account-panel:not(.account-panel--auth) { display: block; padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--bootstrap-line); border-radius: 14px; background: var(--bootstrap-panel); }
#account-panel .account-panel__intro { margin-bottom: 1.2rem; }
#account-panel .eyebrow, #account-panel .zone-label { color: var(--bootstrap-accent); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
#account-panel h2, #account-panel h3 { margin: .45rem 0; }
#account-panel .panel-copy { color: #c5d1d8; line-height: 1.55; }
#account-panel .auth-view { margin-top: 1rem; }
#account-panel .auth-form { display: grid; gap: .9rem; }
#account-panel .auth-form label { display: grid; gap: .35rem; font-weight: 600; }
#account-panel input { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid #506371; border-radius: 7px; background: #08141f; color: #fff; }
#account-panel .button--primary { border-color: #d6a916; background: var(--bootstrap-accent); color: #101820; font-weight: 750; }
#account-panel .button--ghost, #account-panel .button--tiny { margin-top: .65rem; }
#account-panel .auth-view__footer, #account-panel .auth-email-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
#account-panel .form-status, #account-panel .auth-email-warning { color: #d8e2e8; }
#account-panel .form-status[data-tone="error"] { color: #ffb0a7; }
#account-panel .form-status[data-tone="success"] { color: #9de3b1; }

.protected-access { margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--bootstrap-line); border-radius: 10px; background: #0c1924; }
.protected-access h2 { margin: 0; font-size: 1rem; }
.protected-access p { margin: .5rem 0 0; color: #d4dde2; line-height: 1.45; }
.protected-access[data-state="error"] { border-color: #a8544f; }
.protected-access[data-state="success"] { border-color: #4d8c65; }
.protected-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }

@media (max-width: 480px) {
  .protected-shell { width: min(100% - 1rem, 40rem); margin: 1rem auto; }
  #account-panel:not(.account-panel--auth) { padding: 1rem; }
}
