/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-login__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
}

.page-login__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439; /* Brand color for secondary button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Header offset handled by main element */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-login__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Section */
.page-login__form-section {
  background-color: #0a0a0a; /* Dark background for form section, consistent with body */
  color: #ffffff;
  padding: 60px 0;
}

.page-login__form-title {
  font-size: 2.2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__form-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form {
  max-width: 450px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for card effect */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.1em;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439; /* Brand color border */
  border-radius: 6px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
  outline: none;
}

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

.page-login__form-input:focus {
  border-color: #02a04d;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439;
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #02a04d;
  text-decoration: underline;
}

.page-login__btn-submit {
  width: 100%;
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
  padding: 15px 25px;
  border-radius: 8px;
  border: none;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__btn-submit:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #02a04d;
  text-decoration: underline;
}

/* Features Section */
.page-login__features-section {
  background-color: #017439; /* Brand primary color for this section */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-login__feature-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__feature-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-login__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__responsible-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-login__content-heading {
  font-size: 1.8em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-login__content-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-login__faq-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.page-login__faq-heading {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for toggle */
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus effect */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.1);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Call to Action Bottom Section */
.page-login__cta-bottom-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__form-title {
    font-size: 2em;
  }
  .page-login__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    height: auto;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile hero */
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }
  .page-login__container,
  .page-login__login-form {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-item {
    padding: 25px;
  }
  .page-login__feature-title {
    font-size: 1.5em;
  }
  .page-login__image-full-width,
  .page-login__cta-image,
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-login__responsible-gaming-section .page-login__container,
  .page-login__faq-section .page-login__container,
  .page-login__cta-bottom-section .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__content-heading {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__form-title {
    font-size: 1.6em;
  }
  .page-login__form-input {
    padding: 10px;
  }
  .page-login__btn-submit {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__feature-title {
    font-size: 1.3em;
  }
}