/* style/login.css */

/* Base Styles & Typography */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold color for main title */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark red for section titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-login__section-description,
.page-login p,
.page-login li {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 15px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-login__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  cursor: pointer; /* Indicate video is clickable */
}

.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: 2;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Login Form */
.page-login__login-form-container {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 30px auto 0 auto;
  border: 1px solid #FFD700;
}

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

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-size: 1em;
}

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

.page-login__input::placeholder {
  color: #aaaaaa;
}

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

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

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

.page-login__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
  background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
  background-color: #FFD700;
}

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

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

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

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

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

.page-login__login-button {
  width: 100%;
  margin-top: 15px;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #f0f0f0;
  font-size: 0.95em;
}

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

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

/* General Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-login__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #8B0000; /* Dark Red */
  border: 2px solid #8B0000;
}

.page-login__btn-secondary:hover {
  background-color: #8B0000;
  color: #ffffff;
}

.page-login__btn-link {
  display: inline-block;
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-login__btn-link:hover {
  color: #FFD700;
}

.page-login__large-button {
  padding: 18px 30px;
  font-size: 1.2em;
}

/* Content Area */
.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  color: #333333;
}

/* Features Grid */
.page-login__why-choose-us .page-login__section-description {
  margin-bottom: 40px;
}

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

.page-login__feature-card,
.page-login__game-card,
.page-login__promo-card,
.page-login__security-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-login__feature-card:hover,
.page-login__game-card:hover,
.page-login__promo-card:hover,
.page-login__security-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-image,
.page-login__game-image,
.page-login__promo-image,
.page-login__security-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-login__feature-title,
.page-login__game-title,
.page-login__promo-title,
.page-login__security-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-login__game-title a,
.page-login__security-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-login__game-title a:hover,
.page-login__security-title a:hover {
  color: #FFD700;
}

.page-login__feature-text,
.page-login__game-text,
.page-login__promo-text,
.page-login__security-text {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  text-align: left;
}

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

.page-login__cta-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #333333;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #f0f0f0;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-login__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-login__faq-item:last-child {
  border-bottom: none;
}

.page-login__faq-question {
  background-color: #ffffff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus becomes an X or minus */
  color: #8B0000;
}

.page-login__faq-answer {
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-login__faq-answer p {
  text-align: left;
  font-size: 1em;
  color: #555555;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-login__final-cta {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Image Specific Styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-section {
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description,
  .page-login p,
  .page-login li {
    font-size: 1em;
    text-align: left;
  }
  .page-login__hero-section {
    min-height: 500px;
  }
  .page-login__login-form-container {
    padding: 30px 20px;
    max-width: 95%;
  }
  .page-login__options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__login-button,
  .page-login__large-button,
  .page-login__btn-primary,
  .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-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__content-area,
  .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;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__feature-image,
  .page-login__game-image,
  .page-login__promo-image,
  .page-login__security-image {
    height: auto; /* Allow height to adjust for mobile */
    max-height: 200px; /* Cap height to prevent overly large images */
  }
  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video area is below header */
  }
}