/* ── 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;
}

/* ── Reset / Base ── */
*, *::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;
}

/* ── Buttons ── */
.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-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  color: var(--dv-navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border: 1.5px solid var(--dv-navy);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-outline:hover, .btn-outline:focus-visible { background: #fff; outline: none; }
.btn-outline:disabled { color: var(--dv-subtle); border-color: var(--dv-border); cursor: not-allowed; }

.btn-full { display: block; width: 100%; text-align: center; }

/* ══════════════════════════════════════════ */
/* MINIMAL AUTH HEADER                        */
/* ══════════════════════════════════════════ */
.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 PANEL                                 */
/* ══════════════════════════════════════════ */
.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: 6px;
}
.auth-hint {
  font-size: 0.9rem;
  color: var(--dv-text-muted);
  margin-bottom: 28px;
}

/* ── Form fields ── */
.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-row { position: relative; display: flex; align-items: stretch; }
.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;
}
.field-with-toggle input { padding-right: 84px; }
.field-toggle-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 12px;
  background: none;
  border: none;
  color: var(--dv-navy);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
.field-toggle-btn:hover, .field-toggle-btn:focus-visible {
  background: var(--dv-bg-cta);
  outline: none;
}

.auth-forgot-link {
  display: block;
  margin: -6px 0 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dv-navy);
  text-decoration: none;
}
.auth-forgot-link:hover, .auth-forgot-link:focus-visible { text-decoration: underline; }

/* ── Status / error message region ── */
.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="info"] {
  background: var(--dv-bg-cta);
  color: var(--dv-navy);
}
.auth-message[data-tone="success"] {
  background: var(--dv-bg-cta);
  color: var(--dv-navy);
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--dv-subtle);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dv-divider);
}

.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;
}

/* ══════════════════════════════════════════ */
/* FOOTER                                     */
/* ══════════════════════════════════════════ */
.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); }

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

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

@media (max-width: 360px) {
  .auth-panel { padding: 28px 16px; }
}
