/* ── Design tokens (redeclared — this repo has no shared stylesheet) ── */
:root {
  --dv-navy:        #1a2b6d;
  --dv-navy-dark:   #14226b;
  --dv-accent:      #1a4fd6;
  --dv-bg-soft:     #f8f9ff;
  --dv-bg-cta:      #eef2ff;
  --dv-border:      #c8d2ea;
  --dv-border-card: #d4dcf0;
  --dv-text-muted:  #6878a8;
  --dv-text-mid:    #3d4e87;
  --dv-divider:     #e8ecf4;
  --dv-subtle:      #8896c4;
  --dv-footer-rule: #e0e7f2;
  --dv-error:       #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--dv-navy);
  background: var(--dv-bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
h1, h2 { font-weight: 700; line-height: 1.2; color: var(--dv-navy); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 36px; }

.btn {
  display: inline-block;
  background: var(--dv-navy);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--dv-navy-dark); outline: none; }
.btn:disabled { background: var(--dv-subtle); cursor: not-allowed; }
.btn-full { display: block; width: 100%; text-align: center; }

.auth-header { padding: 20px 0; }
.auth-header .container { display: flex; align-items: center; justify-content: space-between; }
.auth-logo img { height: 42px; width: auto; }
.auth-back-home { font-size: 0.92rem; font-weight: 600; color: var(--dv-navy); text-decoration: none; }
.auth-back-home:hover, .auth-back-home:focus-visible { text-decoration: underline; }

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 56px;
}
.auth-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(26, 43, 109, 0.14);
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
}
.auth-panel h1 { font-size: 1.5rem; margin-bottom: 10px; }
.auth-sub { color: var(--dv-text-mid); margin-bottom: 28px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--dv-navy); }
.field input {
  font: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--dv-border);
  border-radius: 8px;
  min-height: 44px;
  background: #fff;
  color: var(--dv-navy);
  width: 100%;
}
.field input:focus-visible {
  border-color: var(--dv-navy);
  outline: 2px solid var(--dv-accent);
  outline-offset: 2px;
}
.field[data-invalid="true"] input { border-color: var(--dv-error); }
.field-error { color: var(--dv-error); font-size: 0.85rem; }

.auth-message {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
  white-space: pre-line;
}
.auth-message:empty { display: none; }
.auth-message[data-tone="error"] { background: #fdf1ef; color: var(--dv-error); }
.auth-message[data-tone="success"] { background: var(--dv-bg-cta); color: var(--dv-navy); }

.auth-footer-note { text-align: center; margin-top: 26px; font-size: 0.92rem; color: var(--dv-text-mid); }
.auth-footer-note a { color: var(--dv-navy); font-weight: 600; }

.site-footer { border-top: 1px solid var(--dv-footer-rule); padding: 24px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.875rem; color: var(--dv-text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.875rem; color: var(--dv-text-muted); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--dv-navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .auth-panel { padding: 32px 22px; }
  .auth-main { padding: 16px 16px 40px; }
}
