/* ===== Bob's Flight Alerts — Auth Pages CSS (Split Screen Design) =====
   Coherent with landing.php brand design system
   ========================================================================== */

:root {
  --blue: #0049a4;
  --blue-dark: #00337a;
  --blue-light: #3a7bc8;
  --navy: #0f2c47;
  --heading: #12314b;
  --text: #5a6b7b;
  --muted: #8a97a6;
  --bg-soft: #f6f9fc;
  --bg-blue: #eaf2fb;
  --border: #e6ebf1;
  --border-focus: #0049a4;
  --card-shadow: 0 16px 40px rgba(16, 44, 71, 0.09);
  --radius: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-brand: 'Baloo 2', 'Poppins', sans-serif;

  --error: #ef4444;
  --success: #10b981;
}

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

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-soft);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Page Container */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   LEFT PANEL — Hero Visual (Brand Blue & Travel Theme)
   ========================================================================== */
.auth-hero {
  position: relative;
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  background: linear-gradient(135deg, #0f2c47 0%, #0049a4 55%, #1e5cb3 100%);
  overflow: hidden;
  color: #ffffff;
}

/* Decorative Background Image Overlay */
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/landing/auth-hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.45;
  filter: saturate(1.15) contrast(1.05);
  z-index: 1;
}

/* Subtle Gradient Veil */
.auth-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 44, 71, 0.45) 0%, rgba(0, 73, 164, 0.65) 60%, rgba(15, 44, 71, 0.92) 100%);
  z-index: 2;
}

.auth-hero-content {
  position: relative;
  z-index: 3;
}

/* Logo */
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 73, 164, 0.4);
}

/* Flight Route Canvas/Graphic overlay */
.auth-flight-routes {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 480px;
  opacity: 0.25;
  z-index: 2;
  pointer-events: none;
}

/* Slogan Footer in Hero */
.auth-hero-footer {
  position: relative;
  z-index: 3;
  max-width: 520px;
  margin-top: auto;
  padding-top: 3rem;
}

.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.auth-hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
}

.auth-hero-title span {
  color: #7dd3fc;
}

.auth-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ==========================================================================
   RIGHT PANEL — Form Container (Clean Light Style matching Landing)
   ========================================================================== */
.auth-form-side {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  background-color: var(--bg-soft);
  position: relative;
  z-index: 5;
}

.auth-form-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--card-shadow);
}

.auth-header {
  margin-bottom: 1.75rem;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-transform: uppercase;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Form Controls */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 1rem 0 2.8rem;
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--heading);
  font-size: 0.975rem;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #a0aec0;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 73, 164, 0.12);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--blue);
}

/* Row for Password / Forgot Link */
.form-extra {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -0.25rem;
}

.forgot-link {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* Buttons */
.btn-submit {
  width: 100%;
  height: 52px;
  margin-top: 0.5rem;
  background: var(--blue);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 73, 164, 0.28);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 73, 164, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Status Notifications */
.auth-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.auth-alert.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-alert.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

/* Spinner Loader */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

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

/* Switch Footer */
.auth-switch {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.925rem;
  color: var(--text);
}

.auth-switch a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.35rem;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.auth-terms {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-terms a {
  color: var(--text);
  text-decoration: underline;
}

/* Tab panels toggle transition */
.auth-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.auth-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-hero {
    min-height: 280px;
    flex: none;
    padding: 2.5rem 1.75rem;
  }

  .auth-hero-title {
    font-size: 2rem;
  }

  .auth-hero-sub {
    font-size: 0.95rem;
  }

  .auth-form-side {
    padding: 2.5rem 1.5rem;
    flex: 1;
  }

  .auth-form-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-hero {
    min-height: 230px;
    padding: 1.75rem 1.25rem;
  }

  .auth-hero-title {
    font-size: 1.6rem;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .form-input, .btn-submit {
    height: 48px;
  }
}

/* Selected membership is kept visible throughout account creation and sign-in. */
.auth-plan-notice { padding: 16px 18px; margin-bottom: 24px; border: 1px solid #cbdff8; border-radius: 12px; background: #eef5ff; color: #123761; font-size: 14px; line-height: 1.6; }
.auth-plan-notice strong { display: block; font-size: 16px; }
.auth-plan-notice p { margin: 6px 0; }
.auth-plan-notice a { color: #0049a4; text-decoration: underline; }
#signupPasswordHint { display: block; color: #52647b; margin-top: 6px; }
.auth-plan-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:#123761}.auth-plan-heading a{font-size:13px;color:#0049a4;text-decoration:underline}.auth-plan-heading a:focus-visible{outline:3px solid #649af3;outline-offset:3px}.auth-form-card .plan-options small{display:block}.auth-form-card .plan-options{margin-bottom:16px}.auth-form-card .plan-status{font-size:13px;padding:14px;margin-bottom:16px}.auth-form-card .plan-steps{margin-bottom:22px}.auth-form-card .auth-plan-notice{font-size:13px;margin-bottom:22px}.auth-form-card .auth-plan-notice strong{font-size:15px}.auth-form-card .auth-plan-notice [hidden]{display:none}@media(max-width:480px){.auth-form-side{padding:20px 12px}.auth-form-card{padding:24px 16px}.auth-form-card .plan-options strong{font-size:18px}.auth-form-card .plan-options .plan-selection{font-size:11px}.auth-form-card .btn-submit{font-size:13px}}
