/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Body background from shared.css */
}

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

/* Section styling */
.page-login__hero-section,
.page-login__benefits-section,
.page-login__security-section,
.page-login__games-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
}

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

.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;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF; /* White text for dark background */
  margin-bottom: 20px;
}

.page-login__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.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;
  color: #FFFFFF;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  color: #FFFFFF;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.page-login__forgot-password {
  margin-top: 15px;
  font-size: 0.9em;
}

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

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

/* General button styles */
.page-login__cta-button {
  padding: 14px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-login__btn-primary {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Section titles and descriptions */
.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Color themes for sections */
.page-login__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

/* Benefits Section */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-login__benefit-icon {
  width: 200px; /* Minimum size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

/* Security Section */
.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-login__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Promotions Section */
.page-login__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__promo-text {
  flex: 1;
  min-width: 300px;
}

.page-login__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__promo-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-login__promo-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #EA7C07;
}

.page-login__promo-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__promo-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 1.1em;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-login__faq-item[open] > .page-login__faq-question {
  background-color: #26A9E0; /* Highlight when open */
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  color: #FFFFFF;
}

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

/* Details element specific styling to hide default marker */
.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}

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

/* CTA Section */
.page-login__cta-section .page-login__section-description {
  margin-bottom: 30px;
}

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

/* Global image settings for content area to prevent small icons */
.page-login img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

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

  .page-login__security-content,
  .page-login__promo-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-text,
  .page-login__promo-text {
    min-width: unset;
  }

  .page-login__promo-list {
    text-align: center;
    padding-left: 0;
  }
  .page-login__promo-list li {
    padding-left: 0;
    margin-left: 25px;
  }
  .page-login__promo-list li::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__hero-content {
    padding: 20px;
    margin: 0 15px;
  }

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

  .page-login__description {
    font-size: 1em;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
  }

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

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

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

  /* Mobile image, video, button, and container overrides */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% */
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size even on mobile */
    min-height: 200px !important;
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__container,
  .page-login__hero-content,
  .page-login__benefits-grid,
  .page-login__security-content,
  .page-login__games-grid,
  .page-login__promo-content,
  .page-login__faq-list,
  .page-login__cta-buttons,
  .page-login__login-form-wrapper,
  .page-login__security-image-wrapper,
  .page-login__promo-image-wrapper,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__cta-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__promo-list li {
    margin-left: 0;
  }
  .page-login__promo-list li::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .page-login__promo-list {
    text-align: center;
  }
}

/* Contrast Fixes */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure min-width for all images in content area */
.page-login__benefit-icon,
.page-login__security-image,
.page-login__game-image,
.page-login__promo-image {
    min-width: 200px;
    min-height: 200px;
}