/* style/login.css */

/* --- Base Styles & Variables (Ensure contrast with body background #0A0A0A) --- */
.page-login {
  background-color: var(--background-color); /* Inherited from shared.css, expected to be #0A0A0A */
  color: #FFF6D6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Section Spacing --- */
.page-login__hero-section,
.page-login__form-section,
.page-login__benefits-section,
.page-login__register-promo-section,
.page-login__faq-section {
  padding: 60px 0;
  box-sizing: border-box;
}

/* First content section after header should have small top padding, body handles header offset */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0A0A0A; /* Ensure background for the whole section */
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Add padding at the bottom */
}

.page-login__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* Soften edges */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__hero-content {
  max-width: 900px; /* Constrain text width */
  padding: 0 20px; /* Use container padding */
}

.page-login__main-title {
  color: #FFD36B; /* Glow color for main title */
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-login__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6; /* Main text color */
}

/* --- Buttons --- */
.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 211, 107, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #FFD36B; /* Glow color for border */
}

.page-login__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 211, 107, 0.2);
}

.page-login__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

/* --- Dark Section Background --- */
.page-login__dark-section {
  background-color: #0A0A0A; /* Explicitly dark background */
  color: #FFF6D6; /* Light text for dark background */
}

/* --- Login Form Section --- */
.page-login__form-section {
  text-align: center;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F2C14E; /* Main brand color for titles */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-login__section-description {
  font-size: 1rem;
  color: #FFF6D6; /* Main text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 40px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-login__login-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__login-form {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #FFF6D6; /* Main text color */
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 6px;
  color: #FFF6D6; /* Input text color */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 246, 214, 0.6);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #F2C14E; /* Main brand color on focus */
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}