/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--page-bg, #F4F7FB); /* Using provided background color */
}

.page-login__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 15px;
  max-width: 900px;
  margin-top: -80px; /* Adjust to slightly overlap image for visual flow */
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 17px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__form-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.page-login__form-container {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #D6E2FF; /* Border color */
}

.page-login__form-title {
  font-size: 32px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-login__form-label {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 5px;
  font-size: 16px;
  color: #000000; /* Custom Color_1776249996415 */
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #2F6BFF;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

.page-login__forgot-password-link {
  font-size: 14px;
  color: #2F6BFF;
  text-align: right;
  margin-top: -10px;
  text-decoration: none;
}

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

.page-login__submit-button {
  padding: 15px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-login__register-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__form-background-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-login__benefits-section,
.page-login__troubleshooting-section,
.page-login__faq-section,
.page-login__call-to-action {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.page-login__section-title {
  font-size: clamp(24px, 3vw, 36px);
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

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

.page-login__benefit-item {
  padding: 25px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #D6E2FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

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

.page-login__benefit-title {
  font-size: 22px;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 16px;
  color: #333333;
}

.page-login__troubleshooting-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.page-login__troubleshooting-content > * {
  flex: 1;
  min-width: 300px;
}

.page-login__troubleshooting-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-login__troubleshooting-list strong {
  color: #1F2D3D;
}

.page-login__support-button {
  display: inline-block;
  padding: 12px 25px;
  background: #6FA3FF; /* Auxiliary color */
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__support-button:hover {
  background: #2F6BFF;
}

.page-login__support-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

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

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

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

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

/* --- Homepage specific CSS (MUST BE INCLUDED as per instructions) --- */
/* This section is required in the output even for non-homepage files */
@media (max-width: 1023px) {
  .page-login__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-login__hero-brand,
  .page-login__hero-jackpot {
    display: none !important;
  }
  .page-login__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-login__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-login__game-trial-topbar,
  .page-login__game-trial-bottombar {
    display: none !important;
  }
  .page-login__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-login__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-login__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-login__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-login__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-login__hero-brand,
  .page-login__hero-jackpot,
  .page-login__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-login__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-login__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-login__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-login__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-login__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Additional PC layout for homepage modules, if they were present */
  /* .page-login__promo-strip { margin-top: 16px; } */
  /* .page-login__promo-strip-track { grid-template-columns: repeat(4, 1fr); } */
  /* .page-login__hot-games-grid { grid-template-columns: repeat(6, 1fr); } */
}

/* --- Mobile responsiveness for login page --- */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-login__hero-section {
    margin-bottom: 20px;
  }

  .page-login__hero-content {
    margin-top: -40px;
    padding: 15px 10px;
  }

  .page-login__main-title {
    font-size: 24px;
  }

  .page-login__description {
    font-size: 15px;
  }

  .page-login__form-section {
    padding: 20px 10px;
    gap: 20px;
    margin-bottom: 20px;
  }

  .page-login__form-container {
    padding: 20px;
  }

  .page-login__form-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-login__submit-button,
  .page-login__support-button,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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 {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__call-to-action {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .page-login__section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item {
    padding: 15px;
  }

  .page-login__benefit-title {
    font-size: 20px;
  }

  .page-login__troubleshooting-list {
    font-size: 15px;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 15px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* All images must adapt */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images/buttons must adapt */
  .page-login__form-section,
  .page-login__form-container,
  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__call-to-action,
  .page-login__hero-content,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage specific media queries (if they were present, as per instructions) */
  /* .page-login__promo-strip-track { grid-template-columns: repeat(2, 1fr) !important; overflow-x: hidden !important; } */
  /* .page-login__hot-games-grid { grid-template-columns: repeat(2, 1fr) !important; } */
  /* .page-login__brand-intro { display: block !important; } */
  /* .page-login__winner-ticker { position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; z-index: 100; } */
}

/* Ensure contrast for text on various backgrounds */
.page-login__dark-bg {
  color: #ffffff; /* Deep blue background */
  background: #2F6BFF;
}

.page-login__light-bg {
  color: #333333; /* White background */
  background: #ffffff;
}

.page-login__medium-bg {
  color: #000000; /* Light blue background */
  background: #6FA3FF;
}

/* Specific contrast fixes */
.page-login__login-form p,
.page-login__login-form label,
.page-login__forgot-password-link,
.page-login__register-text,
.page-login__register-link,
.page-login__troubleshooting-content p,
.page-login__troubleshooting-list li {
  color: #1F2D3D; /* Ensure main text color for readability */
}

/* Reward modal for homepage (MUST BE INCLUDED if homepage-specific JS is present) */
.page-login__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-login__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.page-login__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}

.page-login__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.page-login__reward-modal-close:hover {
  color: #000;
}

.page-login--reward-open {
  overflow: hidden; /* Prevent scrolling when modal is open */
}