/* Light VIP Theme Background */
.auth-page-body {
  background: #f4f6fa !important;
}

/* Global Header Styling Override on Login Page for Legibility */
.auth-page-body .glass-header {
  background: #0A1128 !important; /* Elegant solid dark sapphire header background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Main Auth Layout Wrapper with Light Silk Gradient */
.auth-wrapper {
  min-height: calc(100vh - 90px); /* Fill window height below header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: radial-gradient(circle at 50% 50%, #f9fbfd 0%, #edf1f7 100%) !important; /* Silky white background */
  position: relative;
  overflow: hidden;
}

/* Background Atmospheric Light Glows */
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 17, 40, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Main Split-Screen Container - Rich Obsidian Solid Glass Jewel */
.auth-container {
  width: 100%;
  max-width: 1200px;
  min-height: 680px;
  background: #0d1527 !important; /* Rich solid brand dark navy so it pops perfectly! */
  border: 1px solid rgba(212, 175, 55, 0.15) !important; /* Glowing golden border frame */
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(10, 17, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  z-index: 5;
}

/* ==========================================================================
   Left Panel: Cinematic Media Section (Hero Panel)
   ========================================================================== */
.auth-hero-panel {
  position: relative;
  background-image: url('../image/innova.png'); /* Premium high-resolution visual reference */
  background-size: cover;
  background-position: center;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 11, 22, 0.7) 0%, rgba(13, 21, 39, 0.95) 100%);
  z-index: 1;
}

.hero-brand-content {
  position: relative;
  z-index: 2;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.hero-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 460px;
}

/* Features List inside Hero Panel */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: var(--gold);
  color: #0A1128;
  transform: translateY(-3px);
  box-shadow: var(--gold-glow);
}

.feature-text h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Right Panel: Form Column Section
   ========================================================================== */
.auth-form-panel {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 27, 0.5);
}

.form-card-glass {
  width: 100%;
  max-width: 440px;
}

/* Slide Tabs Switcher */
.auth-tabs {
  position: relative;
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 0;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-tab-btn.active {
  color: #0A1128; /* Contrast color over gold slider */
}

/* Sliding Background Indicator */
.tab-slider-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA7C11 100%);
  border-radius: 8px;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Form Headings */
.form-header {
  margin-bottom: 30px;
}

.form-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ==========================================================================
   Tab Transitions and Form Animation
   ========================================================================== */
.auth-form-body {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.auth-form-body.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Luxury Form Fields (Input Groups)
   ========================================================================== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  width: 100%;
}

.auth-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.auth-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Password eye toggler container */
.password-wrapper {
  position: relative;
  width: 100%;
}

.btn-toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
  z-index: 5;
}

.btn-toggle-password:hover {
  color: var(--gold);
}

/* Checkbox and Forgot Row */
.form-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 5px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 24px;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 15px;
  width: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--gold);
  border-color: var(--gold);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 7px;
  border: solid #0A1128;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgot-link {
  text-decoration: none;
  color: var(--gold);
  transition: all 0.3s ease;
  font-weight: 600;
}

.forgot-link:hover {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  text-decoration: underline;
}

/* Terms checkbox adaptation */
.terms-checkbox {
  font-size: 12px;
  line-height: 1.4;
  margin-top: 10px;
}

.terms-checkbox a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

/* Gold Submit Button styling */
.btn-submit-gold {
  background: var(--gold-gradient);
  border: none;
  color: #0A1128;
  padding: 15px 30px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.btn-submit-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.35);
  color: #000000;
}

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

/* ==========================================================================
   Full Responsive Rules
   ========================================================================== */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr; /* Stack visually */
    max-width: 600px;
    min-height: auto;
  }

  .auth-hero-panel {
    padding: 40px;
    min-height: 280px;
    justify-content: center;
  }

  .hero-brand-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .hero-brand-desc {
    margin-bottom: 20px;
  }

  .hero-features-list {
    display: none; /* Hide subfeatures on mobile to preserve gutter spaces */
  }

  .auth-form-panel {
    padding: 40px;
  }
}

/* Highly Optimized Mobile Compact Override (max-width: 768px) */
@media (max-width: 768px) {
  /* Reduce Hero Banner height and padding for Mobile */
  .auth-page-body .car-rental-hero {
    height: auto !important;
    min-height: 180px !important;
    padding: 40px 0 20px 0 !important;
  }
  
  .auth-page-body .hero-title {
    font-size: 24px !important; /* Extremely readable and compact on mobile */
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
  }
  
  .auth-page-body .hero-subtitle {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    padding: 0 15px !important;
  }
  
  .auth-page-body .gold-tag {
    font-size: 10px !important;
    margin-bottom: 6px !important;
    letter-spacing: 2px !important;
  }

  /* Make the gap between Hero and Login Card extremely compact on mobile */
  .auth-page-body .auth-wrapper {
    padding: 10px 10px 30px 10px !important; /* Keep exact 10px side margins and tightly fit the gap! */
    min-height: auto !important;
  }
  
  .auth-page-body .auth-container {
    margin-top: 0 !important;
  }
}

@media (max-width: 576px) {
  .auth-wrapper {
    padding: 10px 10px 30px 10px !important; /* Keep exact 10px cover gutter spaces on mobile screens */
  }

  .auth-container {
    border-radius: 16px;
  }

  .auth-hero-panel {
    padding: 30px 20px;
    min-height: 180px;
  }

  .hero-brand-title {
    font-size: 1.6rem;
  }
  
  .hero-brand-desc {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 0;
  }

  .auth-form-panel {
    padding: 25px 15px;
  }

  .form-header {
    margin-bottom: 20px;
  }

  .form-header h3 {
    font-size: 1.35rem;
  }

  .auth-control {
    padding: 11px 14px;
    font-size: 13px;
  }

  .btn-submit-gold {
    padding: 13px 20px;
    font-size: 12px;
    margin-top: 10px;
  }
  
  .auth-tabs {
    margin-bottom: 25px;
  }
}
