/* =====================================================
   Fi-Fy CLONE — AUTH PAGES (Login & Register)
   ===================================================== */

/* ── Full-page layout ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel — decorative dark brand panel */
.auth-panel-left {
  background: var(--navy-900);
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(93,95,239,0.30) 0%, transparent 60%);
  pointer-events: none;
}
.auth-panel-left::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(93,95,239,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.auth-panel-brand {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auth-panel-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: auto;
}
.auth-panel-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
  max-width: 380px;
}
.auth-panel-headline .highlight {
  color: #a8a9f9;
}
.auth-panel-subtext {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 320px;
  margin-bottom: var(--space-8);
}
.auth-panel-stats {
  display: flex;
  gap: var(--space-8);
}
.auth-panel-stat {}
.auth-panel-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  line-height: 1;
  margin-bottom: 3px;
}
.auth-panel-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

/* Floating testimonial card on left panel */
.auth-testimonial {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-top: var(--space-8);
}
.auth-testimonial-quote {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.80);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin-bottom: var(--space-3);
}
.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.auth-testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--white);
}
.auth-testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.85);
}
.auth-testimonial-org {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

/* Right panel — form ── */
.auth-panel-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-16);
  background: var(--white);
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

/* Header of form panel */
.auth-form-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.auth-form-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--slate-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.auth-form-subtitle {
  font-size: var(--text-base);
  color: var(--slate-500);
  line-height: var(--leading-relaxed);
}

/* Form body */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.auth-form-footer {
  margin-top: var(--space-6);
  text-align: center;
}
.auth-form-footer p {
  font-size: var(--text-sm);
  color: var(--slate-500);
}
.auth-form-footer a {
  color: var(--purple-600);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.auth-form-footer a:hover { text-decoration: underline; }

/* Forgot password link */
.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -var(--space-2);
}
.auth-forgot a {
  font-size: var(--text-sm);
  color: var(--purple-600);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.auth-forgot a:hover { text-decoration: underline; }

/* Terms agreement */
.auth-terms {
  font-size: var(--text-xs);
  color: var(--slate-500);
  line-height: var(--leading-relaxed);
  text-align: center;
  margin-top: var(--space-3);
}
.auth-terms a {
  color: var(--purple-600);
  text-decoration: none;
}
.auth-terms a:hover { text-decoration: underline; }

/* Error messages */
.form-error {
  font-size: var(--text-xs);
  color: #EF4444;
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Success state */
.form-success-msg {
  background: var(--green-100);
  color: #15803D;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ══════════════════════════════════════
   LOCATION MODAL (Register step 1)
══════════════════════════════════════ */
.location-modal .modal {
  max-width: 520px;
  text-align: center;
}
.location-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--slate-900);
  margin-bottom: var(--space-2);
}
.location-modal-subtitle {
  font-size: var(--text-base);
  color: var(--slate-500);
  margin-bottom: var(--space-6);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.location-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
}
.location-option:hover {
  border-color: var(--purple-600);
  background: var(--purple-50);
  box-shadow: 0 0 0 3px rgba(93,95,239,0.10);
}
.location-flag {
  font-size: 28px;
  line-height: 1;
}
.location-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--slate-800);
  display: block;
}
.location-currency {
  font-size: var(--text-xs);
  color: var(--slate-500);
}

/* ── Responsive Auth ── */
@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: var(--space-8) var(--space-6); min-height: 100vh; }
}
@media (max-width: 480px) {
  .auth-form-row { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .auth-panel-right { padding: var(--space-6) var(--space-4); }
}
