/* ============ Login / Role Select ============ */
.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 15% 0%, rgba(212,242,74,0.10) 0%, transparent 60%),
    radial-gradient(60% 40% at 100% 100%, rgba(31,107,58,0.35) 0%, transparent 60%),
    linear-gradient(180deg, #0b1610 0%, #07100b 100%);
  pointer-events: none;
}
.login-bg.subtle {
  background:
    radial-gradient(70% 45% at 0% 0%, rgba(212,242,74,0.07) 0%, transparent 65%),
    linear-gradient(180deg, #0b1610 0%, #07100b 100%);
}

.role-wrap, .login-wrap {
  position: relative;
  z-index: 1;
  padding: 52px 24px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.role-wrap::-webkit-scrollbar,
.login-wrap::-webkit-scrollbar { display: none; }

/* ============ Brand lockup ============ */
.hs-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
/* Wide wordmark (~4.3:1): cap height so it replaces the old square "H" marks cleanly */
.hs-logo--role {
  max-height: 48px;
  max-width: min(100%, 300px);
}
.hs-logo--form {
  max-height: 34px;
  max-width: min(100%, 260px);
}
.hs-logo--coach {
  max-height: 30px;
  max-width: min(100%, 220px);
  opacity: 0.95;
}
.hs-logo--mast {
  max-height: 36px;
  max-width: min(100%, 200px);
}

.role-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.role-brand--lockup {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.role-brand-tagline {
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--hs-text-dim);
}
.role-brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--hs-lime);
  color: var(--hs-lime-ink);
  display: grid; place-items: center;
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.role-brand-mark.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; }
.role-brand-text { display: flex; flex-direction: column; line-height: 1; }
.role-brand-name {
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.role-brand-name.sm { font-size: 15px; }
.role-brand-sub {
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--hs-text-dim);
  margin-top: 4px;
}
.role-brand-sub.sm { font-size: 8px; letter-spacing: 0.28em; margin-top: 3px; }

/* ============ Hero text ============ */
.role-hero { margin-top: 44px; }
.role-hero-eyebrow {
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--hs-lime);
  text-transform: uppercase;
}
.role-hero-title {
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 12px 0 12px;
  text-wrap: balance;
}
.role-hero-sub {
  font-size: 14px;
  color: var(--hs-text-dim);
  margin: 0;
  max-width: 28ch;
  line-height: 1.45;
}

/* ============ Role stack ============ */
.role-stack {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: none;
  cursor: pointer;
  font-family: var(--hs-display);
  color: var(--hs-text);
  padding: 20px;
  border-radius: 22px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.role-card:active { transform: scale(0.985); }

.role-card--primary {
  background: var(--hs-lime);
  color: var(--hs-lime-ink);
  padding: 24px 22px;
  box-shadow: 0 12px 40px -12px rgba(212,242,74,0.45);
}
.role-card--primary::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
}
.role-card--coach {
  background: var(--hs-surface-2);
  border: 1px solid var(--hs-line-strong);
}
.role-card--admin {
  background: transparent;
  border: 1px solid var(--hs-line);
  padding: 14px 18px;
  color: var(--hs-text-dim);
}

.role-card-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(12,20,8,0.18);
  color: var(--hs-lime-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.role-card-icon-wrap.small {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(212,242,74,0.10);
  color: var(--hs-lime);
}
.role-card-body { flex: 1; min-width: 0; }
.role-card-body.inline {
  display: flex; align-items: baseline; gap: 8px;
}
.role-card-eyebrow {
  font-family: var(--hs-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 2px;
}
.role-card-title {
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.role-card-title.small { font-size: 18px; }
.role-card-title.tiny {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--hs-text);
  font-weight: 700;
}
.role-card-sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 4px;
  font-family: var(--hs-body);
}
.role-card-sub.tiny {
  font-size: 11px;
  margin-top: 0;
  color: var(--hs-text-mute);
}
.role-card-arrow {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--hs-lime-ink);
  color: var(--hs-lime);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.role-card-arrow.subtle {
  width: 36px; height: 36px;
  background: var(--hs-surface-3);
  color: var(--hs-text);
  border-radius: 12px;
}
.role-card-admin-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hs-text-mute);
  flex-shrink: 0;
}

/* ============ Footer ============ */
.role-footer {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--hs-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--hs-text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.role-footer-dot { opacity: 0.6; }

/* ============ Login Form ============ */
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  margin-top: -4px;
}
.login-back {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  color: var(--hs-text);
  display: grid; place-items: center;
  cursor: pointer;
  transform: rotate(180deg);
}
.login-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hs-surface-2);
  border: 1px solid var(--hs-line-strong);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-lime);
}

.login-brand-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.login-brand-row--lockup {
  margin-bottom: 28px;
}

.login-hero { margin-bottom: 24px; }
.login-eyebrow {
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--hs-lime);
  text-transform: uppercase;
}
.login-title {
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 8px 0 0;
  text-wrap: balance;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field-label {
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-text-dim);
  display: flex; align-items: baseline; justify-content: space-between;
}
.login-field-helper {
  color: var(--hs-lime);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  font-weight: 600;
}
.login-input-wrap { position: relative; }
.login-input {
  width: 100%;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line-strong);
  color: var(--hs-text);
  padding: 16px 18px;
  border-radius: 14px;
  font-family: var(--hs-body);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}
.login-input:focus {
  border-color: var(--hs-lime);
}
.login-input::placeholder { color: var(--hs-text-mute); }
.login-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  color: var(--hs-text-dim);
  cursor: pointer;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--hs-text-dim);
  cursor: pointer;
  margin-top: 2px;
}
.login-check {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--hs-lime);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.login-check span {
  width: 10px; height: 6px;
  border-left: 2px solid var(--hs-lime-ink);
  border-bottom: 2px solid var(--hs-lime-ink);
  transform: rotate(-45deg) translate(1px, -1px);
}

.login-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--hs-lime);
  color: var(--hs-lime-ink);
  border: none;
  cursor: pointer;
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.login-submit--neutral {
  background: var(--hs-surface-2);
  color: var(--hs-text);
  border: 1px solid var(--hs-line-strong);
}
.login-submit--neutral svg { color: var(--hs-lime); }

.login-help {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hs-text-mute);
  text-align: center;
  line-height: 1.5;
}

.login-perks {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--hs-line-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-perk {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--hs-text-dim);
}
.login-perk svg { color: var(--hs-lime); flex-shrink: 0; }

/* Admin gets a more utility flavor */
.login-utility .login-eyebrow { color: var(--hs-text-dim); }
.login-utility .login-role-pill { color: var(--hs-text); }

/* ============ Coach Login — dedicated ============ */
.coach-pill { color: var(--hs-lime); }

.coach-logo-row {
  margin-bottom: 14px;
}

.coach-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #14422a 0%, #0d2a1b 100%);
  border: 1px solid rgba(212,242,74,0.18);
  margin-bottom: 18px;
}
.coach-banner-art {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(212,242,74,0.12);
  color: var(--hs-lime);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.coach-banner-eyebrow {
  font-family: var(--hs-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--hs-lime);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.coach-banner-title {
  font-family: var(--hs-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.coach-day {
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 22px;
}
.coach-day-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.coach-day-label {
  font-family: var(--hs-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--hs-text-dim);
}
.coach-day-count {
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--hs-lime);
}
.coach-day-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.coach-day-cell {
  background: var(--hs-surface-3);
  border-radius: 8px;
  padding: 8px 4px 6px;
  text-align: center;
  position: relative;
  font-family: var(--hs-mono);
  font-size: 10px;
  color: var(--hs-text-dim);
}
.coach-day-cell i {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hs-text-mute);
  margin: 4px auto 0;
}
.coach-day-cell.on { color: var(--hs-text); background: rgba(212,242,74,0.10); }
.coach-day-cell.on i { background: var(--hs-lime); }
.coach-day-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--hs-text-mute);
  text-align: center;
}

.coach-footer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border-radius: 12px;
  border: 1px solid var(--hs-line);
  font-size: 11.5px;
  color: var(--hs-text-dim);
  line-height: 1.4;
}
.coach-footer-row svg { color: var(--hs-lime); flex-shrink: 0; margin-top: 2px; }
.coach-footer-row a { color: var(--hs-lime); text-decoration: none; font-weight: 600; }

/* ============ Admin Login — utility ============ */
.admin-wrap { padding-top: 52px; }
.admin-pill {
  background: rgba(255,255,255,0.03) !important;
  border-color: var(--hs-line) !important;
  color: var(--hs-text) !important;
  font-family: var(--hs-mono) !important;
  letter-spacing: 0.16em !important;
  font-size: 10px !important;
}
.admin-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hs-lime);
  box-shadow: 0 0 8px var(--hs-lime);
}

.admin-mast {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hs-line);
}
.admin-mast-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.admin-mast-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--hs-surface-2);
  border: 1px solid var(--hs-line-strong);
  color: var(--hs-lime);
  display: grid; place-items: center;
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 22px;
}
.admin-mast-name {
  font-family: var(--hs-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.admin-mast-sub {
  font-family: var(--hs-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--hs-text-dim);
  margin-top: 3px;
}

.admin-hero { margin-bottom: 18px; }
.admin-hero-sub {
  font-size: 12.5px;
  color: var(--hs-text-dim);
  margin: 8px 0 0;
}

.admin-status {
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-family: var(--hs-mono);
  font-size: 11px;
}
.admin-status-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
}
.admin-status-row:not(:last-child) {
  border-bottom: 1px dashed var(--hs-line);
}
.admin-status-key {
  color: var(--hs-text-mute);
  letter-spacing: 0.12em;
}
.admin-status-val {
  color: var(--hs-text);
}

.admin-input {
  font-family: var(--hs-mono) !important;
  font-size: 13.5px !important;
  letter-spacing: 0.02em;
}

.admin-otp {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-otp input {
  width: 100%;
  flex: 1;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line-strong);
  color: var(--hs-text);
  padding: 14px 0;
  text-align: center;
  font-family: var(--hs-mono);
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  outline: none;
}
.admin-otp input:focus { border-color: var(--hs-lime); }
.admin-otp-dash {
  color: var(--hs-text-mute);
  font-family: var(--hs-mono);
  padding: 0 2px;
}

.admin-legal {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hs-line);
  border-left: 3px solid var(--hs-lime);
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: var(--hs-text-dim);
  line-height: 1.5;
}
.admin-legal-key {
  font-family: var(--hs-display);
  font-weight: 900;
  color: var(--hs-lime);
  font-size: 14px;
  line-height: 1;
}
