/* style/login.css */

/* General page styling */
.page-login {
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow */
}

.page-login__image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image container */
  margin-bottom: 30px; /* Space between image and text */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-login__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold color for main title */
  text-shadow: 0 0 10px rgba(243, 197, 77, 0.5);
}

.page-login__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #FFF1E8;
  opacity: 0.9;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #140C0C; /* Ensure consistent background */
}

.page-login__form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #2A1212; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #6A1E1E; /* Border color */
}

.page-login__form-title {
  font-size: 2em;
  color: #F3C54D; /* Gold color for form title */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #FFF1E8;
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF1E8;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 10px;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #6A1E1E;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #C61F1F; /* Main brand color */
  border-color: #C61F1F;
}

.page-login__checkbox:checked::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFF1E8;
  font-size: 12px;
}

.page-login__checkbox-label {
  color: #FFF1E8;
  cursor: pointer;
}

.page-login__forgot-password-link {
  color: #F3C54D; /* Gold color */
  text-decoration: none;
  font-size: 0.9em;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  opacity: 0.9;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  color: #FFF1E8;
}

.page-login__register-link {
  color: #F3C54D; /* Gold color */
  text-decoration: none;
  font-weight: 500;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #140C0C;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #F3C54D;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__benefit-card {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure large images, not small icons */
  max-width: 200px; /* Example max width for benefit icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure block level for margin auto */
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #F3C54D;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  color: #FFF1E8;
  font-size: 0.95em;
  line-height: 1.7;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #140C0C;
}

.page-login__cta-title {
  font-size: 2.2em;
  color: #F3C54D;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__cta-description {
  font-size: 1.1em;
  color: #FFF1E8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 700;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8;
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }

  /* Containers for images, videos, buttons */
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__cta-section,
  .page-login__form-container,
  .page-login__container,
  .page-login__image-wrapper,
  .page-login__benefits-grid,
  .page-login__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-login__submit-button,
  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-login__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-login__section-title,
  .page-login__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .page-login__form-container {
    padding: 30px 15px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
}