/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color);
}

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

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-login__hero-image {
  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.6);
  z-index: -1;
}

.page-login__hero-content {
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-login__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-login__form-section .page-login__container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-login__form-wrapper {
  background-color: #262626; /* Slightly lighter dark background for the form card */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  flex: 1;
  max-width: 500px;
  box-sizing: border-box;
}

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

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #333;
  color: #ffffff;
  font-size: 1em;
  outline: none;
}

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

.page-login__form-input:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #f0f0f0;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 4px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkbox-checkmark {
  background-color: #444;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #26A9E0;
  border-color: #26A9E0;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

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

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

.page-login__btn-submit {
  background-color: #EA7C07; /* Orange for login button */
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-submit:hover {
  background-color: #c96706;
}

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

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

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

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

.page-login__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

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

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

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__benefit-text {
  color: #f0f0f0;
}

/* Game Showcase Section */
.page-login__game-showcase-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
  text-align: center;
}

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

.page-login__game-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-login__game-text {
  color: #f0f0f0;
  font-size: 0.95em;
  flex-grow: 1;
}

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

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

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

.page-login__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__promo-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__promo-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__promo-text {
  color: #f0f0f0;
}

.page-login__cta-center {
  margin-top: 50px;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
  text-align: center;
}

.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #262626;
  border-bottom: 1px solid #333;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #333;
}

.page-login__faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 2em;
  line-height: 1;
  color: #26A9E0;
  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 30px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px 30px;
}

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

/* Final CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__form-section .page-login__container {
    flex-direction: column;
  }
  .page-login__form-image-container {
    order: -1; /* Image above form on smaller screens */
  }
  .page-login__form-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    height: auto;
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button {
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__form-section, .page-login__benefits-section, .page-login__game-showcase-section, .page-login__promotions-section, .page-login__faq-section, .page-login__cta-section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-login__section-description {
    font-size: 0.95em;
    padding: 0 15px;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__benefits-grid, .page-login__game-grid, .page-login__promo-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-login__benefit-card, .page-login__game-card, .page-login__promo-card {
    padding: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-question h3 {
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__cta-section .page-login__cta-buttons {
    flex-direction: column;
    padding: 0 15px;
  }
  /* Mobile image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
  }
  /* Content area image size lower bound enforcement */
  .page-login img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
  }
}