/* style/login.css */

/* Base styles for the login page */
.page-login {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-login__flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page-login__column {
  flex-direction: column;
}

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

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

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

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  color: #ffffff;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for form */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 30px auto 0 auto;
  color: #333333; /* Dark text on light form background */
}

.page-login__form-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
  color: #000000;
  text-align: center;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #f9f9f9;
}

.page-login__remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

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

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

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

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

.page-login__forgot-password:hover {
  color: #1a7aab;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background-color: #d16b06;
}

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

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

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

/* Benefits Section */
.page-login__benefits-section {
  background-color: #0a0a0a;
  padding: 60px 20px;
}

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

.page-login__benefit-card {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

/* Game Categories Section */
.page-login__game-categories {
  background-color: #1a1a1a;
  padding: 60px 20px;
}

.page-login__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-login__category-card {
  display: block;
  padding: 25px;
  background: rgba(38, 169, 224, 0.15); /* Light blue tint on dark background */
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__category-card:hover {
  background-color: rgba(38, 169, 224, 0.3);
  transform: translateY(-3px);
}

.page-login__category-card .page-login__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__category-card .page-login__card-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

/* Guide Section */
.page-login__guide-section {
  background-color: #0a0a0a;
  padding: 60px 20px;
}

.page-login__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-login__guide-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__guide-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-top: 15px;
}

.page-login__guide-list li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__guide-list li strong {
  color: #26A9E0;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
}

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

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

.page-login__faq-item summary {
  list-style: none;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.25);
}

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

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

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-login__faq-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

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

/* App Download Section */
.page-login__app-download-section {
  background-color: #0a0a0a;
  padding: 60px 20px;
}

.page-login__app-content {
  max-width: 500px;
  text-align: left;
}

.page-login__app-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-login__app-download-button {
  padding: 15px 30px;
  background-color: #26A9E0;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 30px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__app-download-button:hover {
  background-color: #1a7aab;
}

/* Contact Section */
.page-login__contact-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
}

.page-login__contact-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EA7C07;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  transition: background-color 0.3s ease;
  margin-top: 30px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__contact-button:hover {
  background-color: #d16b06;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 700px;
  }
  .page-login__form-wrapper {
    max-width: 400px;
  }
  .page-login__app-download-section .page-login__flex-center {
    flex-direction: column;
    text-align: center;
  }
  .page-login__app-content {
    text-align: center;
    max-width: 100%;
  }
  .page-login__app-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__description,
  .page-login__section-description {
    font-size: 1em;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-login__form-wrapper {
    padding: 25px;
    max-width: 100%;
  }

  .page-login__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__benefits-grid,
  .page-login__categories-grid,
  .page-login__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-login__benefits-section,
  .page-login__game-categories,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__app-download-section,
  .page-login__contact-section {
    padding: 30px 15px;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .page-login__submit-button,
  .page-login__app-download-button,
  .page-login__contact-button,
  .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;
  }

  /* Ensure containers with buttons/images are responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__app-content,
  .page-login__app-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Color Contrast Fixes - Ensure light text on dark body background */
.page-login__dark-bg {
  background: #1a1a1a;
  color: #ffffff;
}

.page-login__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-login__card {
  color: #ffffff;
}

.page-login__hero-content p {
  color: #f0f0f0;
}

.page-login__form-wrapper .page-login__label,
.page-login__form-wrapper .page-login__input,
.page-login__form-wrapper .page-login__checkbox-label,
.page-login__form-wrapper .page-login__register-prompt {
  color: #333333;
}

.page-login__form-wrapper .page-login__form-title {
  color: #000000;
}