/* Placeholder for homepage trial media queries - MUST BE INCLUDED AS PER INSTRUCTIONS */
@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;
  }
}

/* General page styles */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #f8f8f8); /* Assuming light background */
}

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

.page-login__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0; /* Brand color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as per instructions */
  margin-bottom: 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.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;
  display: block;
}

.page-login__hero-content-area {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Ensure content area has height */
  padding: 40px 15px;
  text-align: center;
  color: #FFFFFF; /* Light text on dark/colored background */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for H1 */
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
}

.page-login__hero-content-area .page-login__description {
  color: #FFFFFF;
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto;
  min-width: 180px;
}

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

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

.page-login__btn-secondary {
  background: #26A9E0; /* Brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background: #1e87bb;
  border-color: #1e87bb;
}

.page-login__btn-submit {
  background: #EA7C07;
  color: #FFFFFF;
  border: none;
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 8px;
}

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

/* Form Section */
.page-login__form-section {
  background: #FFFFFF;
  padding: 50px 0;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 12px;
}

.page-login__login-form {
  max-width: 450px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #f9f9f9;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

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

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 50px 0;
  background: #f0f7ff; /* Light blue background */
  margin-bottom: 40px;
}

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

.page-login__benefit-card {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

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

.page-login__benefit-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 50px 0;
  margin-bottom: 40px;
}

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;
}
.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;
}

/* CTA Download Section */
.page-login__cta-download {
  padding: 60px 0;
  background: #26A9E0; /* Brand color background */
  color: #FFFFFF;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-login__cta-download .page-login__section-title,
.page-login__cta-download .page-login__description {
  color: #FFFFFF;
}

.page-login__cta-download .page-login__btn-primary {
  background: #EA7C07;
  border-color: #EA7C07;
}

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

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-section {
    padding-top: 5px;
  }

  .page-login__hero-content-area {
    min-height: 350px;
    padding: 30px 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-login__hero-content-area .page-login__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

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

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

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

  .page-login__benefit-card {
    padding: 20px;
  }

  .page-login__benefit-icon {
    max-width: 200px;
    min-height: 150px; /* Maintain min size */
  }

  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; }

  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* Placeholder for other homepage specific media queries - not strictly applicable to login but required by prompt */
  /* If these sections existed on a login page, they would also be responsive */
  .page-login__promo-strip-track { /* Example for promo strip */
    grid-template-columns: repeat(2, 1fr) !important; 
    overflow-x: hidden;
  }
  .page-login__hot-games-grid { /* Example for hot games grid */
    grid-template-columns: repeat(2,1fr) !important;
    overflow-x: hidden;
  }
}

/* Reward modal styles - from prompt's CSS example, ensure it's included */
.page-login__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: 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: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.page-login__reward-modal-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__reward-modal-text {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 25px;
}

.page-login__reward-modal-btn {
  background: #EA7C07;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-login__reward-modal-btn:hover {
  background: #d46c00;
}