/* style/login.css */

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

/* Fixed header spacing - body handles padding-top */
.page-login__hero-section,
.page-login__form-section,
.page-login__benefits-section,
.page-login__games-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ensure first section has minimal top padding */
.page-login__hero-section {
  padding-top: 10px; /* body already has --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  border-radius: 8px;
  margin-top: 20px;
  width: 100%; /* Ensure full width for flex container */
}

.page-login__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-login__form-section {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px;
  margin-top: 40px;
  text-align: center;
}

.page-login__section-title {
  color: #26A9E0;
  margin-bottom: 30px;
  font-size: 2.2rem;
}

.page-login__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-group input[type="text"],
.page-login__form-group input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-group input[type="text"]::placeholder,
.page-login__form-group input[type="password"]::placeholder {
  color: #aaa;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #ccc;
}

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

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

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

.page-login__btn-login {
  background-color: #EA7C07; /* Custom login color */
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: block;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background-color: #d16e06;
}

.page-login__register-link {
  margin-top: 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

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

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

.page-login__benefits-section,
.page-login__games-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__cta-section {
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}

.page-login__benefits-section h2,
.page-login__games-section h2,
.page-login__promotions-section h2,
.page-login__faq-section h2,
.page-login__cta-section h2 {
  color: #26A9E0;
  margin-bottom: 30px;
  font-size: 2rem;
}

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

.page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-item h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-login__benefit-item p {
  color: #ccc;
  font-size: 1rem;
}

.page-login__benefit-item img {
  margin-bottom: 15px;
  border-radius: 5px;
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
}

.page-login__game-card img {
  margin-bottom: 15px;
  border-radius: 5px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__game-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-login__game-card p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.page-login__game-card a {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.page-login__game-card a:hover {
  background-color: #1e87bb;
}

.page-login__promotions-section p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__btn-promotions {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-promotions:hover {
  background-color: #1e87bb;
}

.page-login__promotions-image {
  margin-top: 30px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-list {
  text-align: left;
  max-width: 800px;
  margin: 30px auto 0;
}

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

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  list-style: none; /* Hide default marker for details */
}

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

.page-login__faq-question {
  flex-grow: 1;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  margin-left: 10px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

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

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

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

.page-login__btn-cta-login,
.page-login__btn-cta-register {
  padding: 14px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-cta-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: none;
}

.page-login__btn-cta-login:hover {
  background-color: #d16e06;
}

.page-login__btn-cta-register {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-cta-register: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,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px; /* Adjust spacing for mobile */
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body already has --header-offset */
  }

  .page-login__main-title {
    font-size: 2rem !important; /* Smaller H1 for mobile */
  }

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

  /* Image responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__benefit-item,
  .page-login__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

  /* Buttons responsive */
  .page-login__btn-login,
  .page-login__btn-promotions,
  .page-login__btn-cta-login,
  .page-login__btn-cta-register,
  .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 on mobile */
    gap: 15px;
  }

  .page-login__benefits-grid,
  .page-login__games-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
  }

  .page-login__form {
    max-width: 100%; /* Form takes full width */
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}