/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: #08160F; /* Main background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for content sections */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding: 60px 20px 40px; /* Top padding, small top margin for mobile */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  min-height: 48px; /* WCAG touch target size */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-login__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slight background on hover */
  color: #F2FFF6;
  border-color: #57E38D;
}

/* Section Titles */
.page-login__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 25px;
  margin-top: 50px;
  line-height: 1.3;
}

.page-login__section-intro {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Card styles */
.page-login__card {
  background-color: #11271B; /* Card background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #F2FFF6; /* Text color for cards */
}

/* Login Form Section */
.page-login__login-form-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Default for desktop */
  align-items: center;
  gap: 40px;
}

.page-login__form-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-illustration img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-login__login-form {
  flex: 1;
  text-align: left;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep green for input background */
  color: #F2FFF6;
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

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

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

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

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

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #F2C14E; /* Gold on hover */
  text-decoration: underline;
}

.page-login__login-button {
  width: 100%;
  margin-top: 15px;
}

.page-login__register-prompt {
  margin-top: 25px;
  color: #A7D9B8;
  font-size: 1rem;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
}

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

.page-login__feature-item {
  text-align: center;
}

.page-login__feature-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-login__feature-description {
  font-size: 1rem;
  color: #A7D9B8;
}

.page-login__image-wrapper {
  text-align: center;
}

.page-login__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* Security Section */
.page-login__dark-bg {
  background-color: #0A4B2C; /* Deep green for dark background sections */
  color: #F2FFF6;
}

.page-login__security-section {
  padding: 80px 0;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row; /* Default for desktop */
}

.page-login__security-text {
  flex: 1;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__security-list li {
  margin-bottom: 20px;
}

.page-login__list-title {
  font-size: 1.3rem;
  color: #F2C14E;
  margin-bottom: 5px;
}

.page-login__security-list p {
  color: #A7D9B8;
  font-size: 1rem;
}

.page-login__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
}

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

.page-login__game-card {
  text-align: center;
  padding: 25px;
}

.page-login__game-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-login__game-description {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

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

.page-login__game-link:hover {
  color: #F2C14E;
  text-decoration: underline;
}

.page-login__view-all-games {
  text-align: center;
  margin-top: 30px;
}

/* Promotions Section */
.page-login__light-bg {
  background-color: #11271B; /* Using card BG for this section to differentiate */
  color: #F2FFF6;
}

.page-login__medium-text {
  color: #F2FFF6;
}

.page-login__promotions-section {
  padding: 80px 0;
}

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

.page-login__promo-card {
  text-align: center;
  padding: 25px;
}

.page-login__promo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-login__promo-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-login__promo-description {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 25px;
}

.page-login__view-all-promos {
  text-align: center;
  margin-top: 30px;
}

/* Support Section */
.page-login__support-section {
  padding: 80px 0;
}

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

.page-login__support-item {
  text-align: center;
  padding: 25px;
}

.page-login__support-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-login__support-description {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  margin-bottom: 20px;
  overflow: hidden; /* For max-height transition if JS fallback is used */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2C14E;
  cursor: pointer;
  background-color: #11271B; /* Card background color */
  border-bottom: 1px solid #2E7A4E;
  list-style: none; /* Remove default marker for summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on old Safari */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Standard property to disable text selection */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-login__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2);
}

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

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

.page-login__faq-answer {
  padding: 20px;
  background-color: #0A4B2C; /* Deep green for answer background */
  color: #A7D9B8;
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid #2E7A4E;
}

/* Adjustments for details tag */
.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: none; /* No border when open */
}
.page-login__faq-item[open] .page-login__faq-toggle {
  color: #F2C14E;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__form-wrapper,
  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__form-illustration,
  .page-login__security-image-wrapper {
    margin-bottom: 30px;
  }

  .page-login__security-text {
    text-align: left; /* Keep text left-aligned for readability */
  }

  .page-login__section-title {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 30px 15px 20px;
  }

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

  .page-login__description {
    font-size: 1rem;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-login__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure min size is maintained even on small screens */
    min-height: 200px; /* Ensure min size is maintained even on small screens */
  }

  /* Containers for images/content */
  .page-login__hero-section,
  .page-login__login-form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__support-section,
  .page-login__faq-section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__security-content,
  .page-login__features-grid,
  .page-login__game-categories,
  .page-login__promotions-grid,
  .page-login__support-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image-wrapper,
  .page-login__form-illustration,
  .page-login__security-image-wrapper,
  .page-login__image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-login__login-form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__support-section,
  .page-login__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding for hero section */
  }

  .page-login__feature-item,
  .page-login__game-card,
  .page-login__promo-card,
  .page-login__support-item {
    padding: 20px;
  }

  .page-login__list-title {
    font-size: 1.2rem;
  }
}