/* 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: transparent; /* Body background is handled by shared.css */
}

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Containers */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.page-login__main-heading {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Card */
.page-login__login-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #EA7C07; /* Login color */
  box-shadow: 0 0 0 3px rgba(234, 124, 7, 0.3);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #26A9E0; /* Brand color for checkbox */
}

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

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

.page-login__forgot-password:hover {
  text-decoration: underline;
  color: #EA7C07; /* Login color on hover */
}

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.page-login__login-button:hover {
  background-color: #d86c06; /* Slightly darker login color */
  transform: translateY(-2px);
}

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

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

.page-login__register-link:hover {
  text-decoration: underline;
  color: #EA7C07;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__benefit-icon {
  width: 200px; /* Minimum width */
  height: 150px; /* Minimum height, maintaining aspect ratio if possible */
  object-fit: contain; /* Use contain for icons to show full image */
  margin: 0 auto 20px; /* Center the icon */
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

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

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
  color: #333333;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

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

.page-login__security-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__security-paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #555555;
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 300px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
  object-fit: cover;
}

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-login__game-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-login__game-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.page-login__btn-link:hover {
  color: #d86c06;
  text-decoration: underline;
}

.page-login__games-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-login__games-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 300px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
  object-fit: cover;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

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

.page-login__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question background */
  color: #ffffff; /* White text for contrast */
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #1f8ec4; /* Slightly darker brand color on hover */
}

.page-login__faq-question-text {
  margin: 0;
  flex-grow: 1;
  color: #ffffff; /* Ensure text color */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 20px;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff; /* White background for answer */
  color: #555555; /* Dark text for contrast */
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #555555; /* Ensure text color */
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text */
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background-color: #d86c06;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color for text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-heading {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header */
  }

  .page-login__main-heading {
    font-size: 2.5em;
  }

  .page-login__intro-text {
    font-size: 1.1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
    max-width: 90%;
  }

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

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }

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

  .page-login__security-subtitle {
    font-size: 1.5em;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__security-image-wrapper,
  .page-login__games-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-login__hero-content, .page-login__benefits-grid, .page-login__games-grid, .page-login__faq-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-login__faq-question, .page-login__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Color Contrast Safeguards - applied based on body background and section backgrounds */
/* body background is #0a0a0a (dark), so default text is white */
.page-login__dark-bg {
  color: #ffffff;
  background-color: #0a0a0a; /* Explicitly set for sections on dark background */
}

.page-login__light-bg {
  color: #333333;
  background-color: #ffffff; /* Explicitly set for sections on light background */
}

/* Ensure all links and buttons have sufficient contrast */
.page-login a {
  color: #26A9E0;
}
.page-login a:hover {
  color: #EA7C07;
}

.page-login__btn-primary {
  background: #EA7C07;
  color: #ffffff;
}
.page-login__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}
.page-login__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Ensure content images meet minimum size requirements */
.page-login img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Specific override for benefit icons to ensure they are large enough */
.page-login__benefit-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
}

/* Ensure security image is not too small */
.page-login__security-image {
  min-width: 300px;
  min-height: 200px;
}
/* Ensure games image is not too small */
.page-login__games-image {
  min-width: 300px;
  min-height: 200px;
}

/* Ensure FAQ question text has contrast */
.page-login__faq-question-text {
  color: #ffffff;
}