/* ============================================================
   CVWP – Auth Pages Stylesheet (login, register, forgot-pw)
   ============================================================ */

/* ── Auth Page ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* ── Abstract Background Circles ──────────────────────────── */
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-bg__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(circle at center, rgba(255,255,255,0.025) 0%, transparent 70%);
  animation: circlePulse linear infinite;
}

.auth-bg__circle--1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  animation-duration: 18s;
  animation-delay: 0s;
}
.auth-bg__circle--2 {
  width: 400px; height: 400px;
  top: 40%; right: -120px;
  animation-duration: 22s;
  animation-delay: -6s;
}
.auth-bg__circle--3 {
  width: 300px; height: 300px;
  bottom: -80px; left: 30%;
  animation-duration: 26s;
  animation-delay: -12s;
  border-color: rgba(212,175,55,0.08);
  background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
}
.auth-bg__circle--4 {
  width: 500px; height: 500px;
  bottom: -180px; right: -100px;
  animation-duration: 20s;
  animation-delay: -4s;
}
.auth-bg__circle--5 {
  width: 200px; height: 200px;
  top: 25%; left: 20%;
  animation-duration: 14s;
  animation-delay: -8s;
  border-color: rgba(212,175,55,0.05);
}

@keyframes circlePulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  50%  { transform: scale(1.08); opacity: 1;   }
  100% { transform: scale(1);    opacity: 0.7; }
}

/* ── Auth Card ─────────────────────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 48px);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.auth-card--register {
  max-width: 540px;
}

/* Logo */
.auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-logo-svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
  transition: filter 0.3s;
}
.auth-card__logo:hover .auth-logo-svg {
  filter: drop-shadow(0 0 32px rgba(212,175,55,0.5));
}

/* Titles */
.auth-card__title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--white, #fff);
  line-height: 1;
  margin-bottom: 6px;
}

.auth-card__sub {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(240,240,240,0.5);
  margin-bottom: 24px;
}

.auth-card__switch {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(240,240,240,0.5);
  margin-top: 20px;
}

/* ── Form Elements ─────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.65);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white, #fff);
  font-size: 0.925rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus {
  border-color: rgba(212,175,55,0.6);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(255,80,80,0.5);
}
/* Date input color fix */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.form-input-wrap .form-input { padding-right: 44px; }

.form-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.form-eye:hover { color: rgba(255,255,255,0.7); }
.form-eye svg { width: 18px; height: 18px; }

.form-status {
  position: absolute;
  right: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s;
}
.form-status.ok { color: #4ade80; }
.form-status.taken { color: #f87171; }

.form-hint {
  font-size: 0.75rem;
  color: rgba(240,240,240,0.4);
  margin-top: 2px;
}
.form-hint.error { color: #f87171; }
.form-hint.ok    { color: #4ade80; }

.form-forgot { text-align: right; margin-top: -4px; }
.form-link { color: rgba(240,240,240,0.5); font-size: 0.82rem; transition: color 0.2s; }
.form-link:hover { color: var(--white, #fff); }
.form-link--gold { color: #D4AF37; }
.form-link--gold:hover { color: #e8cc70; }

/* ── Alerts ────────────────────────────────────────────────── */
.auth-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 8px;
  color: #f87171;
  padding: 11px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.auth-success {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 8px;
  color: #4ade80;
  padding: 11px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* ── Password Strength ─────────────────────────────────────── */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.pw-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.pw-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s, background-color 0.3s;
}
.pw-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 52px;
  text-align: right;
}

/* ── Step Progress ─────────────────────────────────────────── */
.step-progress {
  margin-bottom: 28px;
}
.step-progress__track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.step-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark, #a8880f), var(--gold, #D4AF37));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.step-progress__labels {
  display: flex;
  justify-content: space-between;
}
.step-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s;
}
.step-label.active { color: var(--gold, #D4AF37); }
.step-label.done   { color: rgba(255,255,255,0.55); }

/* ── Register Steps ────────────────────────────────────────── */
.reg-step { animation: stepIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; }
.reg-step.exiting { animation: stepOut 0.25s ease forwards; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

.step-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--white, #fff);
  margin-bottom: 18px;
  line-height: 1;
}

.step-sub {
  font-size: 0.875rem;
  color: rgba(240,240,240,0.5);
  margin-top: -12px;
  margin-bottom: 16px;
}

/* ── Role Selection Grid ───────────────────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  color: var(--text, #f0f0f0);
}
.role-btn:hover {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.05);
  transform: translateY(-2px);
}
.role-btn.selected {
  border-color: var(--gold, #D4AF37);
  background: rgba(212,175,55,0.1);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.role-icon { font-size: 2rem; line-height: 1; }
.role-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Selector Grid (section/instrument) ───────────────────── */
.selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selector-btn {
  padding: 9px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--text, #f0f0f0);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.selector-btn:hover {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.06);
}
.selector-btn.selected {
  border-color: var(--gold, #D4AF37);
  background: rgba(212,175,55,0.1);
  color: var(--gold, #D4AF37);
  font-weight: 600;
}

/* ── Children Input ────────────────────────────────────────── */
.children-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.child-entry {
  display: flex;
  align-items: center;
  gap: 8px;
}
.child-entry .form-input { flex: 1; }
.child-remove {
  background: none;
  border: none;
  color: rgba(255,80,80,0.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.child-remove:hover {
  color: #f87171;
  background: rgba(248,113,113,0.1);
}

/* ── Step Navigation ───────────────────────────────────────── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.step-nav .btn { flex: 1; }
.step-nav .btn:first-child { flex: 0 0 auto; min-width: 100px; }

/* ── Review Card ───────────────────────────────────────────── */
.review-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.875rem;
}
.review-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}
.review-key {
  color: rgba(240,240,240,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.review-val {
  color: var(--white, #fff);
  text-align: right;
  word-break: break-word;
}

/* ── Toggle Buttons (Yes/No) ───────────────────────────────── */
.toggle-row {
  display: flex;
  gap: 8px;
}
.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text, #f0f0f0);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.toggle-btn:hover {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.06);
}
.toggle-btn.selected {
  border-color: var(--gold, #D4AF37);
  background: rgba(212,175,55,0.1);
  color: var(--gold, #D4AF37);
  font-weight: 600;
}

/* ── Submit Loading state ──────────────────────────────────── */
.btn--loading {
  pointer-events: none;
  opacity: 0.6;
}
.btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
