/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%; /* Ensure full width on desktop as well */
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

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

.page-login__hero-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-login__login-form {
  background-color: #11271B; /* Card B G */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-login__button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  margin-bottom: 15px;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-login__form-links {
  text-align: center;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__forgot-password,
.page-login__register-link,
.page-login__inline-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover,
.page-login__inline-link:hover {
  color: #2AD16F;
  text-decoration: underline;
}

.page-login__separator {
  margin: 0 10px;
  color: #2E7A4E;
}

.page-login__security-note {
  text-align: center;
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 30px;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #11271B; /* Card B G */
}

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

.page-login__benefit-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__benefit-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-login__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
}

.page-login__benefit-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
  margin-top: 40px;
  display: inline-block;
  width: auto;
  padding: 12px 30px;
}

.page-login__btn-secondary:hover {
  background-color: #57E38D; /* Glow */
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

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

/* Security & Responsible Gaming Section */
.page-login__security-rg-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-login__security-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-login__btn-text-only {
  background: transparent;
  border: none;
  color: #57E38D; /* Glow */
  text-decoration: underline;
  display: inline-block;
  padding: 0;
  margin-top: 20px;
  font-size: 1em;
}

.page-login__btn-text-only:hover {
  color: #2AD16F;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-login__troubleshoot-item {
  background-color: #11271B; /* Card B G */
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__troubleshoot-heading {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-login__troubleshoot-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #11271B; /* Card B G */
}

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

.page-login__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

/* CTA Bottom Section */
.page-login__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background */
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__hero-image-wrapper {
    max-height: 450px;
  }
  .page-login__security-content-wrapper {
    flex-direction: column;
  }
  .page-login__security-text, .page-login__security-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-image-wrapper {
    max-height: 350px;
  }
  .page-login__hero-section {
    padding-bottom: 40px;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-rg-section,
  .page-login__troubleshoot-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section {
    padding: 40px 0;
  }
  .page-login__login-form {
    padding: 30px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__benefit-image {
    height: 180px;
  }

  /* Mandatory responsive styles for images, videos, buttons */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    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__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-login__cta-button,
  .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 !important; /* Stack buttons vertically on mobile */
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-image-wrapper {
    max-height: 250px;
  }
  .page-login__form-input,
  .page-login__button {
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
}