/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Ensure images are responsive and meet minimum size requirements */
.page-login img {
  display: block;
  object-fit: cover;
  /* No filter properties to change image color */
}

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

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px; /* Space between image and text */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%; /* Ensure responsiveness */
  border-radius: 8px;
}

.page-login__hero-content {
  max-width: 800px;
  z-index: 1;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom Text Main */
  line-height: 1.2;
}

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

/* General Section Styling */
.page-login__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #F2FFF6; /* Default for dark sections */
}

.page-login__description {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

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

.page-login__form-wrapper {
  background-color: #11271B; /* Custom Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

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

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

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

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: #F2C14E; /* Custom Gold */
}

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

.page-login__checkbox {
  /* Hide default checkbox */
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #2E7A4E;
  border-radius: 4px;
  background-color: #0A4B2C;
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #2AD16F; /* Button top color */
  border-color: #13994A; /* Button bottom color */
}

.page-login__checkbox:checked::before {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #F2FFF6;
  font-size: 14px;
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Custom Text Secondary */
  cursor: pointer;
}

/* Buttons */
.page-login__btn-primary,
.page-login__login-button {
  display: inline-block;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsiveness */
  max-width: 100%; /* Ensure button does not overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary:hover,
.page-login__login-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Custom Glow */
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  background-color: transparent;
  color: #57E38D; /* Custom Glow */
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2FFF6; /* Custom Text Main */
  border-color: #13994A;
}

.page-login__register-text {
  margin-top: 25px;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #22C768; /* Medium-bg color */
  color: #000000; /* Dark text for medium background */
}

.page-login__benefits-section .page-login__section-title {
  color: #000000; /* Dark text for medium background */
}

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

.page-login__benefit-item {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__benefit-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__benefit-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Game Showcase Section */
.page-login__game-showcase {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
}

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

.page-login__game-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-login__game-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit height for uniform cards */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-login__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__game-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding: 0 20px;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__cta-bottom {
  text-align: center;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #F2FFF6; /* Light background for contrast */
  color: #08160F; /* Dark text for light background */
}

.page-login__faq-section .page-login__section-title {
  color: #08160F; /* Dark text for light background */
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background-color: #ffffff; /* White card for FAQ */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333; /* Dark text for white background */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f8f8f8; /* Slightly off-white for summary */
  border-bottom: 1px solid #e0e0e0;
  color: #08160F; /* Dark text for light background */
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #f0f0f0;
  border-bottom-color: #d0d0d0;
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #08160F; /* Dark text for light background */
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E; /* Main brand color */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  color: #13994A; /* Darker brand color */
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333; /* Dark text for white background */
}

/* Register CTA Section */
.page-login__register-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Custom Background */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 700px;
  }
  .page-login__benefits-grid,
  .page-login__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
  }

  /* Mobile Hero Section */
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-login__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-login__btn-primary,
  .page-login__login-button,
  .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,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-login__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 20px;
  }

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

  /* Mobile Form Section */
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__game-showcase,
  .page-login__faq-section,
  .page-login__register-cta {
    padding: 50px 0;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
  }

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

  /* Mobile Images and Videos */
  .page-login img,
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-login__video-section {
    padding-top: 10px !important;
  }

  .page-login__benefit-image,
  .page-login__game-image {
    max-width: 100%;
    height: auto;
  }

  /* FAQ Mobile */
  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Contrast Fixes */
.page-login__dark-bg {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__light-bg {
  background-color: #F2FFF6; /* Light background for contrast */
  color: #08160F; /* Dark text for light background */
}

.page-login__medium-bg {
  background-color: #22C768; /* Auxiliary color */
  color: #000000; /* Black text for medium background */
}

.page-login__text-contrast-fix {
  color: #08160F !important; /* Force dark text on light background */
}

/* Custom Colors */
.page-login__card {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__card p {
  color: #A7D9B8; /* Custom Text Secondary for card paragraphs */
}

.page-login__card h3 {
  color: #F2FFF6; /* Custom Text Main for card titles */
}

.page-login__divider {
  border-color: #1E3A2A; /* Custom Divider */
}

.page-login__gold-text {
  color: #F2C14E; /* Custom Gold */
}

.page-login__glow-text {
  color: #57E38D; /* Custom Glow */
}