/* Homepage Trial Layout CSS - Required by prompt, even for non-homepage */
@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 body styling for text color based on background */
.page-login {
  color: #333333; /* Body background is light (#FFFFFF), so use dark text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  margin-bottom: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
}

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

.page-login__hero-content {
  max-width: 800px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-login__intro-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-login__form-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
}

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

.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: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

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

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

.page-login__forgot-password:hover {
  color: #005f2c;
  text-decoration: underline;
}

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

.page-login__btn-login {
  background: #C30808; /* Login button color */
  color: #000000; /* Black text for WCAG AA contrast on #C30808 */
  margin-bottom: 15px;
}

.page-login__btn-login:hover {
  background: #a30606;
}

.page-login__register-cta {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
  color: #555555;
}

.page-login__btn-register {
  display: inline-block;
  background: #C30808; /* Register button color */
  color: #000000; /* Black text for WCAG AA contrast on #C30808 */
  padding: 10px 20px;
  font-size: 1em;
  margin-left: 10px;
  max-width: none; /* Override for inline-block */
  width: auto; /* Override for inline-block */
}

.page-login__btn-register:hover {
  background: #a30606;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background: #f5f5f5;
  text-align: center;
  margin-bottom: 40px;
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 40px;
}

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

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

.page-login__benefit-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background: #017439;
  color: #ffffff; /* Light text on dark background */
  margin-bottom: 40px;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__security-text {
  flex: 1;
}

.page-login__security-section .page-login__section-title {
  color: #ffffff;
  text-align: left;
}

.page-login__security-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 20px;
  font-size: 1.1em;
}

.page-login__security-list li {
  margin-bottom: 10px;
}

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

.page-login__security-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* FAQ Section */
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;
}
.page-login__faq-answer p {
  color: #555555;
}

/* New User CTA Section */
.page-login__new-user-cta {
  padding: 60px 0;
  background: #017439;
  color: #ffffff;
  text-align: center;
}

.page-login__cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__cta-text {
  flex: 1;
}

.page-login__new-user-cta .page-login__section-title {
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
}

.page-login__new-user-cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: left;
}

.page-login__btn-register-lg {
  background: #C30808; /* Register button color */
  color: #000000; /* Black text for WCAG AA contrast on #C30808 */
  padding: 16px 30px;
  font-size: 1.2em;
  border-radius: 8px;
  max-width: 300px;
  margin: 0 auto;
}

.page-login__btn-register-lg:hover {
  background: #a30606;
}

.page-login__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__security-content,
  .page-login__cta-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-text,
  .page-login__cta-text {
    text-align: center;
  }
  .page-login__security-section .page-login__section-title,
  .page-login__new-user-cta .page-login__section-title {
    text-align: center;
  }
  .page-login__security-list {
    margin-left: 0;
    text-align: left;
  }
  .page-login__cta-image-wrapper,
  .page-login__security-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 20px;
  }
  .page-login__btn-register-lg {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 15px;
  }
  .page-login__hero-section {
    margin-bottom: 30px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }
  .page-login__intro-text {
    font-size: 0.95em;
  }
  .page-login__form-section {
    padding: 30px 0;
    margin-bottom: 30px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__login-form {
    padding: 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    margin-top: 5px;
  }
  .page-login__btn-login,
  .page-login__btn-register-lg {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__btn-register {
    margin-left: 0;
    margin-top: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__register-cta p {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__new-user-cta {
    padding: 40px 0;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }

  /* Mobile image adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__cta-image-wrapper,
  .page-login__container,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__new-user-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Homepage Promo Strip (placeholder, not directly used on login page but required) */
@media (max-width: 768px) {
  .page-login__promo-strip-track {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Example for 4 columns, adjust as needed */
    overflow-x: hidden;
  }
  .page-login__promo-card img {
    max-width: 100%;
    height: auto;
  }
  .page-login__promo-card-content {
    text-align: center;
  }
}

/* Homepage Hot Games (placeholder, not directly used on login page but required) */
@media (max-width: 768px) {
  .page-login__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-login__hot-games-item img {
    width: 100%;
    height: auto;
  }
  .page-login__hot-games-name,
  .page-login__hot-games-rtp,
  .page-login__hot-games-desc {
    display: none; /* Hide for mobile */
  }
  .page-login__hot-games-item {
    text-align: center;
  }
}

/* Homepage Brand Intro (placeholder, not directly used on login page but required) */
@media (max-width: 768px) {
  .page-login__brand-intro {
    padding: 30px 15px;
  }
  .page-login__brand-intro h2 {
    font-size: 1.8em;
  }
}

/* Homepage Winner Ticker (placeholder, not directly used on login page but required) */
@media (max-width: 768px) {
  .page-login__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 0;
    z-index: 999;
    overflow: hidden;
  }
  body {
    padding-bottom: 40px; /* Adjust if ticker is present */
  }
}

/* Game Trial Overlay & Modal (placeholder, not directly used on login page but required) */
.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;
  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;
  text-align: center;
  position: relative;
  max-width: 90%;
  width: 400px;
  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: 1.5em;
  cursor: pointer;
  color: #333;
}
.page-login__reward-modal-close:hover {
  color: #C30808;
}
.page-login__reward-modal h3 {
  color: #017439;
  font-size: 1.8em;
  margin-bottom: 15px;
}
.page-login__reward-modal p {
  color: #555;
  margin-bottom: 20px;
}
.page-login__reward-modal .page-login__btn {
  width: auto;
  padding: 10px 25px;
  font-size: 1em;
  display: inline-block;
}
.page-login--reward-open {
  overflow: hidden;
}