﻿/* ============================================================
   NABUGABO HOLIDAY CENTER — AUTH STYLES
   Login, Register, Forgot/Reset Password, Verify Email
   ============================================================ */

.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── AUTH VISUAL PANEL ── */
.auth-visual {
  position: relative;
  overflow: hidden;
  background: var(--gradient-lake);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-12);
}

.auth-visual__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.auth-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,41,38,0.3) 0%, rgba(45,41,38,0.85) 100%);
}

.auth-visual__content { position: relative; z-index: 1; color: white; }

.auth-visual__logo {
  margin-bottom: var(--space-10);
}

.auth-visual__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: var(--weight-light);
  line-height: 1.3;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.auth-visual__credit {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

.auth-visual__dots {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.auth-visual__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: rgba(255,255,255,0.3);
}
.auth-visual__dot.active { background: var(--color-sand-warm); width: 18px; border-radius: 3px; }

/* ── AUTH FORM PANEL ── */
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  background: var(--bg-page);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-header { margin-bottom: var(--space-8); }

.auth-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-8);
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ── SOCIAL AUTH ── */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.btn--google {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius-md);
  background: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}

.btn--google:hover {
  border-color: var(--color-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── DIVIDER ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-light);
}

/* ── AUTH FORM ── */
.auth-form .form-group { margin-bottom: var(--space-4); }

.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.auth-link {
  color: var(--color-lake-mid);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast);
}

.auth-link:hover { color: var(--color-lake-deep); }

/* ── SWITCH LINK ── */
.auth-switch {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-8);
}

.auth-switch a { color: var(--color-lake-mid); font-weight: var(--weight-semibold); }

/* ── PASSWORD STRENGTH ── */
.password-strength { margin-top: var(--space-2); }

.password-strength__bars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}

.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--color-pale);
  border-radius: var(--radius-pill);
  transition: background var(--duration-base);
}

.strength-bar.weak    { background: var(--color-error); }
.strength-bar.fair    { background: var(--color-warning); }
.strength-bar.good    { background: var(--color-sand-mid); }
.strength-bar.strong  { background: var(--color-forest-light); }

.password-strength__label { font-size: 10px; color: var(--text-muted); }

/* ── OTP INPUTS ── */
.otp-inputs {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin: var(--space-6) 0;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  font-family: var(--font-display);
  border: 2px solid var(--color-light);
  border-radius: var(--radius-lg);
  color: var(--color-lake-deep);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.otp-input:focus {
  border-color: var(--color-lake-mid);
  box-shadow: 0 0 0 3px rgba(74,29,138,0.15);
  outline: none;
}

/* ── SUCCESS STATE ── */
.auth-success {
  text-align: center;
  padding: var(--space-8);
}

.auth-success__icon {
  width: 72px;
  height: 72px;
  background: rgba(160,130,80,0.12);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.auth-success__icon svg { width: 36px; height: 36px; color: var(--color-forest-light); }

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: var(--space-8) var(--space-5); }
}

/* ── Booking context banner on auth page ─────────────── */
.auth-booking-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, rgba(74,29,138,.12), rgba(70,157,91,.1));
  border: 1.5px solid rgba(74,29,138,.4);
  border-radius: 10px;
  padding: .875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
  animation: fadeIn .3s ease;
}

/* ── Shared helpers ───────────────────────────────────── */
/* These classes may exist in main.css — included as fallback */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.auth-brand-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
}
.auth-brand-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.2) 0%, rgba(20,20,20,.75) 100%);
}
.auth-brand-content {
  position: relative; z-index: 1;
  padding: 3rem;
  color: #fff;
}
.auth-logo {
  display: inline-flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 3rem;
}
.auth-quote {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic; font-size: 1.2rem;
  line-height: 1.5; margin: 0 0 1.5rem;
  opacity: .9;
}
.auth-quote footer { font-size: .8rem; opacity: .65; margin-top: .5rem; font-style: normal; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; opacity: .85; }
.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg, #faf9f7);
  padding: 2rem;
  overflow-y: auto;
}
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-back-link {
  display: inline-block; font-size: .875rem;
  color: var(--color-text-muted, #888);
  text-decoration: none; margin-bottom: 1.5rem;
}
.auth-back-link:hover { color: var(--color-text, #1a1a1a); }
.auth-tabs {
  display: flex; gap: .25rem;
  border-bottom: 2px solid var(--color-border, #e8e3dc);
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1; padding: .75rem; font-size: .9rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted, #888);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.auth-tab.is-active, .auth-tab[aria-selected="true"] {
  color: var(--color-accent, #7b2d8b);
  border-bottom-color: var(--color-accent, #7b2d8b);
}
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-title { font-family: var(--font-display, Georgia, serif); font-size: 1.75rem; font-weight: 700; margin: 0 0 .35rem; }
.auth-subtitle { font-size: .9rem; color: var(--color-text-muted, #888); margin: 0 0 1.5rem; }
.forgot-link { font-size: .8rem; color: var(--color-amber-deep, #4a1d8a); float: right; }
.input-password { position: relative; }
.input-password input { padding-right: 2.75rem; width: 100%; }
.toggle-password { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--color-text-muted, #888); }
.form-check { display: flex; align-items: center; gap: .6rem; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--color-accent, #7b2d8b); }
.form-check label { font-size: .875rem; cursor: pointer; }
.btn-full { width: 100%; }
.form-error { font-size: .875rem; color: var(--color-error, #dc2626); padding: .5rem 0; min-height: 1.25rem; }
.register-success { font-size: .875rem; color: var(--color-accent, #7b2d8b); padding: .5rem 0; }
.auth-divider { text-align: center; margin: 1.25rem 0; font-size: .8rem; color: var(--color-text-muted, #888); position: relative; }
.auth-divider::before { content:''; position:absolute; left:0; top:50%; width:100%; height:1px; background: var(--color-border, #e8e3dc); z-index:0; }
.auth-divider span { background: var(--color-bg, #faf9f7); padding: 0 .75rem; position: relative; z-index:1; }

@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { padding: 1.5rem 1rem; }
}

