:root {
  --bg: #0D2340;
  --surface: #0A1C32;
  --card: #0F2A4A;
  --border: rgba(255,255,255,0.06);
  --primary: #1D9E75;
  --primary-hover: #22B585;
  --secondary: #F5C147;
  --accent: #5DCAA5;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #F1EFE8;
  --text-muted: rgba(241,239,232,0.5);
  --font: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
}

.nav-links { display: flex; gap: 4px; }

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link.active {
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Flash messages ──────────────────────────────────── */
.flash-list { list-style: none; margin-bottom: 24px; }

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.flash-success { background: #14532d; border: 1px solid #166534; color: #bbf7d0; }
.flash-error   { background: #7f1d1d; border: 1px solid #991b1b; color: #fecaca; }
.flash-info    { background: #1e3a5f; border: 1px solid #1d4ed8; color: #bfdbfe; }

/* ── Page header ─────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; opacity: 0.9; }

.btn-primary  { background: var(--primary); color: #fff; font-family: var(--font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 3px; }
.btn-success  { background: var(--success); color: #fff; }
.btn-danger   { background: var(--danger);  color: #fff; }
.btn-ghost    { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-outline  { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); font-family: var(--font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 3px; }
.btn-outline:hover { background: rgba(245,193,71,0.1); text-decoration: none; }

.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.card-title { font-size: 16px; font-weight: 600; }

/* ── Grid ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Table ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.required::after { content: ' *'; color: var(--danger); }

input[type=text],
input[type=number],
input[type=date],
input[type=email],
input[type=password],
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Override browser autofill light background on password/email inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0px 1000px var(--surface) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

textarea { min-height: 90px; resize: vertical; }

select option { background: var(--surface); }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.badge-draft     { background: #374151; color: #9ca3af; }
.badge-published { background: #14532d; color: #86efac; }
.badge-blue      { background: #1e3a5f; color: #93c5fd; }

/* ── Stats row ───────────────────────────────────────── */
.stats-row { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }

.stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── Landing page ────────────────────────────────────── */
.landing {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.landing-logo {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.landing-tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 400px;
}

.landing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  width: 100%;
}

@media (max-width: 500px) { .landing-cards { grid-template-columns: 1fr; } }

.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.role-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.role-icon { font-size: 36px; margin-bottom: 12px; }

.role-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

.role-desc { font-size: 14px; color: var(--text-muted); }

/* ── Program text ────────────────────────────────────── */
.program-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-family: var(--font);
  line-height: 1.8;
}

.program-body h1 { font-size: 20px; margin: 0 0 16px; color: var(--primary); }
.program-body h2 { font-size: 17px; margin: 24px 0 10px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.program-body h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.program-body p  { margin-bottom: 10px; }
.program-body ul, .program-body ol { padding-left: 20px; margin-bottom: 10px; }
.program-body li { margin-bottom: 4px; }
.program-body strong { color: var(--text); }
.program-body em { color: var(--text-muted); }
.program-body hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.program-body code { background: var(--card); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ── Loading overlay ─────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 35, 64, 0.92);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: var(--text-muted); font-size: 15px; }

/* ── Empty state ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state-desc  { font-size: 14px; margin-bottom: 20px; }

/* ── Athlete select ──────────────────────────────────── */
.athlete-select-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 64px;
}

/* ── Intake form sections ────────────────────────────── */
.intake-section {
  margin-bottom: 20px;
}

.intake-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── Option cards (activity level, goals) ────────────── */
.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .option-cards { grid-template-columns: 1fr; }
}

.option-card {
  display: block;
  cursor: pointer;
  user-select: none;
}

.option-card input[type="radio"] { display: none; }

.option-card-inner {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.option-card.selected .option-card-inner,
.option-card:has(input:checked) .option-card-inner {
  border-color: var(--primary);
  background: rgba(29, 158, 117, 0.08);
}

.option-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.option-card.selected .option-card-title {
  color: var(--primary);
}

.option-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Radio group (yes/no) ────────────────────────────── */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.radio-option input[type="radio"] { display: none; }

.radio-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(29, 158, 117, 0.1);
  color: var(--primary);
}

/* ── Body diagram ────────────────────────────────────── */
.diagram-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.diagram-btn {
  padding: 7px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.diagram-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.diagram-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.body-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

.body-part {
  fill: rgba(255, 255, 255, 0.05);
  stroke: #4a5168;
  stroke-width: 1;
  transition: fill 0.12s, stroke 0.12s;
  cursor: pointer;
}

.body-part:hover {
  fill: rgba(79, 156, 249, 0.22);
  stroke: var(--primary);
}

.body-part.selected {
  fill: rgba(239, 68, 68, 0.38);
  stroke: var(--danger);
  stroke-width: 1.5;
}

.body-label-text {
  fill: rgba(139, 146, 168, 0.75);
  font-size: 7.5px;
  pointer-events: none;
  font-family: var(--font);
  font-weight: 500;
}

.diagram-touch-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 12px;
  min-height: 20px;
  transition: color 0.15s;
}

.selected-areas-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  margin: 3px 4px 3px 0;
}

.area-chip button {
  background: none;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}

.area-chip button:hover { opacity: 1; }

/* ── Injury / Medical flags (coach dashboard) ────────── */
.flag-injury {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
  white-space: nowrap;
}

.flag-medical {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Injury / Medical banners (athlete detail) ───────── */
.injury-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.injury-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 8px;
}

.injury-banner-body {
  font-size: 13px;
  color: var(--text-muted);
}

.medical-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.medical-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 6px;
}

.medical-banner-body {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Athlete profile stats grid ──────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profile-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.profile-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── Waiver status badges ─────────────────────────────────── */
.badge-waiver-complete {
  background: #14532d;
  color: #86efac;
}

.badge-waiver-pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.badge-waiver-none {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* ── Branded landing page ────────────────────────────── */
body.landing-page {
  background: #0D2340;
}

.landing-nav {
  background: #0A1C32 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
}

.landing-hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 600px 600px at 50% 40%, rgba(29, 158, 117, 0.20) 0%, transparent 70%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.landing-logo-wrap {
  margin-bottom: 40px;
}

.landing-logo-img {
  width: 280px;
  height: 280px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(29, 158, 117, 0.5);
  animation: float 5s ease-in-out infinite;
}

.landing-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(29, 158, 117, 0.4);
}

.landing-divider {
  width: 200px;
  height: 2px;
  background: #F5C147;
  margin: 12px auto;
  border: none;
}

.landing-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5DCAA5;
}

.landing-tagline {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.5);
  margin-top: 8px;
}

.landing-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.btn-landing {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 14px 48px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-landing:hover { text-decoration: none; }

.btn-landing-coach {
  background: #1D9E75;
  color: #fff;
  border: 2px solid #1D9E75;
  box-shadow: 0 4px 24px rgba(29, 158, 117, 0.4);
}

.btn-landing-coach:hover {
  background: #22B585;
  border-color: #22B585;
}

.btn-landing-athlete {
  background: transparent;
  color: #F5C147;
  border: 2px solid #F5C147;
}

.btn-landing-athlete:hover {
  background: rgba(245, 193, 71, 0.1);
}

@media (max-width: 640px) {
  .landing-logo-img { width: 200px; height: 200px; }
  .landing-name { font-size: 52px; }
}

/* ── Login split layout ───────────────────────────────── */
.login-split {
  display: flex;
  height: calc(100vh - 56px);
}

.login-left {
  width: 560px;
  flex-shrink: 0;
  background: #081828;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
}

.login-left-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(29,158,117,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.login-left-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-location {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #C49A2A;
  margin-bottom: 20px;
}

.login-badge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(245,193,71,0.25);
  box-shadow:
    0 0 0 10px rgba(245,193,71,0.04),
    0 0 0 20px rgba(245,193,71,0.02),
    0 0 40px rgba(29,158,117,0.15);
  background: radial-gradient(circle, #0a1e2e 30%, #050f1a 100%);
  overflow: hidden;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.login-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-ethos {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-ethos-rule {
  width: 60px;
  height: 2px;
  background: rgba(245,193,71,0.6);
  border: none;
  display: block;
}

.login-ethos-rule-top { margin-bottom: 20px; }
.login-ethos-rule-bottom { margin-top: 20px; }

.login-ethos-rule-thin {
  width: 40px;
  height: 1px;
  background: rgba(245,193,71,0.5);
  border: none;
  display: block;
  margin: 16px auto;
}

.login-ethos-line {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
}

.login-ethos-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(241,239,232,0.7);
}

.login-footer-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241,239,232,0.2);
  margin-top: 28px;
}

.login-right {
  flex: 1;
  background: #0F2A4A;
  border-left: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow-y: auto;
}

.login-form-inner {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.login-panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5DCAA5;
  margin-bottom: 32px;
}

.login-form-group { margin-bottom: 20px; }

.login-form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input.login-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid rgba(29,158,117,0.3);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

input.login-input:focus {
  outline: none;
  border-color: #1D9E75;
  border-left-color: #1D9E75;
  background: rgba(29,158,117,0.05);
}

input.login-input:-webkit-autofill,
input.login-input:-webkit-autofill:hover,
input.login-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #0c2038 inset !important;
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0px 1000px #0c2038 inset !important;
}

.login-submit {
  width: 100%;
  background: #1D9E75;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(29,158,117,0.3);
  margin-top: 8px;
  transition: background 0.15s;
}

.login-submit:hover { background: #22B585; }

.login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.login-link-register {
  font-size: 13px;
  color: #5DCAA5;
  text-decoration: none;
  padding-bottom: 14px;
}

.login-link-register:hover { text-decoration: underline; }

.login-link-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.login-link-forgot {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.login-link-forgot:hover { color: var(--text); text-decoration: none; }

.login-back {
  display: block;
  width: 100%;
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.login-back:hover { background: rgba(255,255,255,0.03); text-decoration: none; }

@media (max-width: 768px) {
  .login-split { flex-direction: column; height: auto; }
  .login-left { display: none; }
  .login-right { flex: none; width: 100%; padding: 48px 32px; overflow-y: visible; }
}

/* ── Password visibility toggle ──────────────────────── */
.pw-wrap { position: relative; }

.pw-wrap .login-input { padding-right: 40px; }

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.15s;
}

.pw-toggle.visible { color: var(--accent); }

/* ── Back button ─────────────────────────────────────── */
.btn-back {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, rgba(241,239,232,0.5));
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 7px 16px;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-back:hover {
  border-color: rgba(255,255,255,0.2);
  color: #F1EFE8;
  text-decoration: none;
}
