:root {
  --bg: #F8FAFD;
  --fg: #0F1D32;
  --card: #FFFFFF;
  --muted: #EEF2F8;
  --muted-fg: #5A677A;
  --border: #D6DFEA;

  --primary: #073C8D;
  --primary-soft: #DEEDFE;
  --primary-deep: #001F4E;

  --hero: #002D73;

  --success: #2EB240;
  --success-hover: #279936;

  --info: #F0BB3B;
}

html { scroll-behavior: smooth; }

body.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--fg);
  position: relative;
  background: linear-gradient(135deg, var(--hero), var(--primary-deep));
}
body.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 60%);
  mask-image: linear-gradient(to bottom, black, transparent 60%);
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-topbar { flex-shrink: 0; }
.auth-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #fff;
}
.auth-back-link {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-back-link:hover { color: #fff; }

.auth-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,31,78,0.35);
  padding: 2.25rem 2rem;
}
.auth-card.auth-card-wide { max-width: 680px; }

.auth-kicker {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.auth-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.35rem 0 0.35rem;
}
.auth-subtitle { color: var(--muted-fg); margin-bottom: 1.5rem; font-size: 0.95rem; }

.auth-section-label {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.auth-card .form-label { font-weight: 600; font-size: 0.9rem; color: var(--fg); }
.auth-card .form-control,
.auth-card .form-select {
  border-color: var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem var(--primary-soft);
}
.auth-card .form-text { color: var(--muted-fg); }

.auth-btn-primary {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.auth-btn-primary:hover { background: var(--primary-deep); color: #fff; }

.auth-btn-cta {
  background: var(--success);
  border: none;
  color: #F9FDF9;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.auth-btn-cta:hover { background: var(--success-hover); color: #F9FDF9; }

.auth-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { color: var(--primary-deep); }

.auth-divider {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}

.auth-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin: 0 0.5rem;
}
.auth-footer a:hover { color: #fff; }
