/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: #0D0E12; /* Dark background as specified */
  color: #FFF3E6; /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

.page-login__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-login__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is in normal flow */
  z-index: 1; /* Ensure content is above any subtle background elements */
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  color: #FFF3E6; /* Light text for contrast */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1em;
  color: rgba(255, 243, 230, 0.8); /* Slightly less prominent light text */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align form to the top */
  background-color: #0D0E12; /* Match body background */
  box-sizing: border-box;
}

.page-login__form-wrapper {
  background-color: #17191F; /* Card BG color */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  border: 1px solid #A84F0C; /* Border color */
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 2em;
  color: #FFF3E6; /* Light text */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #FFF3E6; /* Light text */
  font-size: 1em;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for input */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  color: #FFF3E6; /* Light text for input value */
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
  color: rgba(255, 243, 230, 0.5); /* Lighter placeholder text */
}

.page-login__form-input:focus {
  border-color: #FFA53A; /* Auxiliary color on focus */
  outline: none;
}

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

.page-login__btn-submit {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Light text */
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-grow: 1; /* Allow button to grow */
  min-width: 180px; /* Minimum width for the button */
  box-sizing: border-box;
}

.page-login__btn-submit:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4); /* Glow effect */
}

.page-login__link-forgot-password {
  color: #FFA53A; /* Auxiliary color for link */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent breaking */
}

.page-login__link-forgot-password:hover {
  color: #FFB04D; /* Glow color on hover */
  text-decoration: underline;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 243, 230, 0.2); /* Subtle divider */
}

.page-login__register-prompt p {
  color: #FFF3E6; /* Light text */
  margin-bottom: 15px;
  font-size: 1em;
}

.page-login__btn-register {
  display: inline-block;
  background: #FF8C1A; /* Main color for register button */
  color: #FFF3E6; /* Light text */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-register:hover {
  background-color: #FFA53A; /* Auxiliary color on hover */
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 20px;
  background-color: #0D0E12; /* Match body background */
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__benefits-title {
  font-size: 2.5em;
  color: #FFF3E6; /* Light text */
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-login__benefit-card {
  background-color: #17191F; /* Card BG color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 176, 77, 0.3); /* Glow color on hover */
}

.page-login__benefit-icon {
  width: 200px; /* Min size 200x200 for content images */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element */
}

.page-login__benefit-heading {
  font-size: 1.5em;
  color: #FFA53A; /* Auxiliary color for headings */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-description {
  color: rgba(255, 243, 230, 0.7); /* Slightly transparent light text */
  font-size: 0.95em;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #FF8C1A; /* Main color for CTA background */
  text-align: center;
  box-sizing: border-box;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-title {
  font-size: 2.8em;
  color: #FFF3E6; /* Light text for contrast */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__cta-description {
  font-size: 1.2em;
  color: rgba(255, 243, 230, 0.9); /* Light text */
  margin-bottom: 40px;
}

.page-login__btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Light text */
  padding: 16px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-login__btn-cta:hover {
  opacity: 0.9;
  box-shadow: 0 8px 25px rgba(255, 165, 58, 0.5); /* Glow effect */
}


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

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

  .page-login__hero-section {
    padding: 10px 15px 40px;
  }

  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__form-section {
    padding: 40px 15px;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
  }

  .page-login__form-title {
    font-size: 1.8em;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__btn-submit,
  .page-login__btn-register,
  .page-login__btn-cta,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure button containers also adapt */
  .page-login__form-actions,
  .page-login__register-prompt,
  .page-login__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__benefits-section {
    padding: 40px 15px;
  }

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

  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-login__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size is respected */
    min-height: 150px !important;
  }
  
  /* All images must be responsive and not cause overflow */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers must be responsive */
  .page-login__hero-image-container,
  .page-login__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-login__form-title,
  .page-login__benefits-title,
  .page-login__cta-title {
    font-size: 1.6em;
  }
  .page-login__btn-submit,
  .page-login__btn-register,
  .page-login__btn-cta {
    font-size: 1em;
  }
}