/* style/login.css */

/* Base styles for the login page */
.page-login {
  color: #ffffff; /* Body background #0a0a0a is dark, so text is light */
  background-color: transparent; /* Assuming body handles the dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a; /* Ensure dark background for this section */
  text-align: center;
  overflow: hidden; /* For responsiveness */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper is responsive */
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and text */
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  color: #ffffff;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 100%; /* Ensures it doesn't overflow */
}

.page-login__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-login__container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px; /* Default padding for content within containers */
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-login__login-form {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #ccc;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Custom login button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none; /* For <a> tags */
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary:hover {
  background-color: #d16b06;
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
  font-size: 1rem;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__benefit-icon {
  width: 100%; /* Take full width of card for large images */
  max-width: 400px; /* Recommended max for content images */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 4px;
  display: block; /* Ensure it's a block element */
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-login__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-login__benefit-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-login__text-link {
  color: #26A9E0;
  text-decoration: none;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-login__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff; /* Ensure question text is white */
}

.page-login__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Change to X or different symbol */
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-login__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background */
  text-align: center;
  color: #ffffff;
}

.page-login__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Constrain button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-login__btn-secondary {
  display: block;
  padding: 15px 20px;
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  flex-grow: 1; /* Allow buttons to grow */
  min-width: 180px; /* Minimum width for buttons */
  max-width: 100%; /* Ensure buttons don't exceed container */
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-login__hero-description {
    font-size: 1rem;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 30px;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive styles */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__guide-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Buttons responsive styles */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

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