/* General styles for page-login */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light background */
  background: #FFFFFF; /* Explicitly set body background to white */
}

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

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #017439;
}

.page-login__text-block {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom font color for login/register */
  border: 2px solid #C30808;
}

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

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

.page-login__btn-secondary:hover {
  background: #005a2d;
  border-color: #005a2d;
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Minimal top padding, body handles header offset */
  padding-bottom: 60px;
  background: #FFFFFF;
  color: #333333;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-login__hero-content {
  text-align: center;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-login__description {
  font-size: 20px;
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__image-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.page-login__form-container {
  max-width: 500px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #017439;
}

.page-login__checkbox-label {
  color: #555;
}

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

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

.page-login__login-button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

.page-login__no-account {
  margin-top: 25px;
  font-size: 15px;
  color: #555;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background: #017439; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-login__benefits-section .page-login__section-title {
  color: #FFFFFF;
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-login__card-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background: #FFFFFF;
  color: #333333;
}

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

.page-login__security-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__security-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.page-login__item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #017439;
}

.page-login__item-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 0;
  background: #017439;
  color: #FFFFFF;
}

.page-login__troubleshooting-section .page-login__section-title {
  color: #FFFFFF;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-login__troubleshooting-list .page-login__list-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-login__troubleshooting-list .page-login__item-title {
  color: #FFFF00;
  font-size: 20px;
  margin-bottom: 10px;
}

.page-login__troubleshooting-list .page-login__item-text {
  font-size: 16px;
  line-height: 1.6;
}

.page-login__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: #333333;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: 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: #333333;
}
.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;
  text-align: left;
  color: #555555;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background: #017439;
  color: #FFFFFF;
}

.page-login__cta-section .page-login__section-title {
  color: #FFFFFF;
}

.page-login__cta-content {
  max-width: 800px;
}

.page-login__cta-buttons a {
  margin: 10px;
}

/* Fixed header padding (body will handle this, this is a fallback if not) */
/* .page-login { padding-top: var(--header-offset, 120px); } */

/* Responsive Styles */

/* HOMEPAGE TEMPLATE CSS - REQUIRED BY OUTPUT FORMAT, EVEN IF NOT USED BY LOGIN PAGE */
@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 Mobile Responsive for Login Page */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 28px;
  }

  .page-login__text-block {
    font-size: 16px;
  }

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

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

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

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

  .page-login__benefits-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
  }

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

  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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; }

  /* No homepage specific CSS for promo strip, hot games, brand intro, winner ticker on login page */
  /* The following are explicitly for homepage, not login page */
  /* .page-login__promo-strip-track { grid-template-columns: repeat(2, 1fr); } */
  /* .page-login__hot-games-grid { grid-template-columns: repeat(2, 1fr); } */
  /* .page-login__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; } */
  /* body { padding-bottom: 50px; } */
}

/* Overlay and start button for game trial (required by output format, even if not used) */
.page-login__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-login__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-login__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-login__game-trial-shell{
  border:1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-login__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
}