/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #222222; /* Matches shared.css body background */
}

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

.page-login__dark-bg {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-login__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333;
  padding: 60px 0;
}

.page-login__hero-section {
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-image: url('[GALLERY:hero_login_banner:1920x1080:login_page,bet789,secure_access,gaming_platform,vibrant_ui]');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-login__hero-section > .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for form */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  font-size: 1em;
}

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

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

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

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

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

.page-login__forgot-password-link {
  color: #FFFF00; /* Custom color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #ffffff;
}

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom color for login button */
  color: #FFFFFF; /* Prioritizing contrast over #FFFF00 for text, as per WCAG AA requirement */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-submit:hover {
  background-color: #e02020;
}

.page-login__no-account {
  margin-top: 25px;
  color: #ffffff;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #FFFF00; /* Custom color for link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #ffffff;
}

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

.page-login__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__benefit-card, .page-login__security-card, .page-login__explore-card, .page-login__promo-card {
  background-color: #f5f5f5; /* Light background for cards in light sections */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__dark-bg .page-login__benefit-card, .page-login__dark-bg .page-login__security-card, .page-login__dark-bg .page-login__explore-card, .page-login__dark-bg .page-login__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards in dark sections */
  color: #ffffff;
}

.page-login__benefit-icon, .page-login__explore-image, .page-login__promo-image, .page-login__guide-image, .page-login__support-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Recommended size for content images */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439; /* Brand color for titles in light sections */
}

.page-login__dark-bg .page-login__card-title {
  color: #FFFF00; /* Custom color for titles in dark sections */
}

.page-login__card-text {
  font-size: 1em;
  line-height: 1.7;
}

.page-login__guide-section .page-login__section-title,
.page-login__guide-section .page-login__section-intro {
  color: #ffffff;
}

.page-login__guide-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for guide items */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-login__guide-subtitle {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for subtitles */
}

.page-login__guide-list,
.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-login__guide-list li,
.page-login__troubleshoot-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-login__list-step {
  font-weight: bold;
  color: #FFFF00;
}

.page-login__troubleshoot-heading {
  color: #FFFF00;
}

.page-login__explore-card .page-login__card-link {
  color: inherit; /* Inherit color from parent */
  text-decoration: none;
}

.page-login__explore-card .page-login__card-link:hover {
  text-decoration: underline;
}

.page-login__promo-card .page-login__card-link {
  color: inherit;
  text-decoration: none;
}

.page-login__promo-card .page-login__card-link:hover {
  text-decoration: underline;
}

.page-login__cta-promotions, .page-login__final-cta-buttons, .page-login__cta-faq {
  text-align: center;
  margin-top: 50px;
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

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

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 15px;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-login__support-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-login__support-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 450px;
}

.page-login__support-item .page-login__card-title {
  color: #FFFF00;
}

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-intro {
  color: #333333;
}

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

.page-login__faq-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: #333333;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
}

.page-login__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-login__final-cta-buttons .page-login__btn-secondary {
  margin-left: 20px;
}

/* Floating Login/Register Buttons */
.page-login__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-login__floating-btn {
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.page-login__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__floating-btn--login {
  background-color: #C30808; /* Custom color for login button */
  color: #FFFFFF; /* Prioritizing contrast over #FFFF00 for text, as per WCAG AA requirement */
}

.page-login__floating-btn--register {
  background-color: #017439; /* Main brand color for register */
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__benefits-grid, .page-login__security-grid, .page-login__explore-grid, .page-login__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-login__support-info {
    flex-direction: column;
  }
  .page-login__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-login__final-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-login__final-cta-buttons .page-login__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-login__floating-buttons {
    right: 10px;
    bottom: 10px;
    flex-direction: row; /* Horizontal for mobile */
    gap: 8px;
  }
  .page-login__floating-btn {
    font-size: 0.9em;
    padding: 10px 18px;
  }

  /* Mobile image and video responsive rules */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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__form-wrapper,
  .page-login__guide-item,
  .page-login__support-item,
  .page-login__explore-card,
  .page-login__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
  }

  /* Buttons responsive */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__btn-submit {
    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,
  .page-login__button-group,
  .page-login__btn-container,
  .page-login__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Stack buttons vertically */
  }
  .page-login__floating-buttons {
    width: auto !important;
    left: 10px;
    right: 10px;
    flex-direction: row;
    justify-content: space-around;
  }
  .page-login__floating-btn {
    flex: 1;
    min-width: unset;
  }
}