/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background: var(--bg-primary); /* Default background from custom palette */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body for 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: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--text-main); /* Ensure text is visible on hero image */
  max-width: 800px;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Deep Green background for readability */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--gold); /* Gold title for prominence */
}

.page-login__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-secondary);
}

.page-login__section-title {
  font-size: 2.2em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-login__form-section {
  padding: 40px 0;
  background: var(--bg-secondary); /* Card BG color */
  margin-bottom: 40px;
  border-radius: 10px;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: var(--bg-primary); /* Background color */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #0A4B2C; /* Deep Green */
  color: var(--text-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

.page-login__forgot-password {
  text-align: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--glow);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: var(--text-secondary);
}

.page-login__register-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--gold);
}

.page-login__benefits-section {
  padding: 50px 0;
  background: var(--bg-primary); /* Background color */
  margin-bottom: 40px;
}

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

.page-login__benefit-card {
  background: var(--bg-secondary); /* Card BG color */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-login__benefit-description {
  color: var(--text-secondary);
  font-size: 0.95em;
}

.page-login__security-section {
  padding: 50px 0;
  background: var(--bg-secondary); /* Card BG color */
  margin-bottom: 40px;
  text-align: center;
  border-radius: 10px;
}

.page-login__security-section .page-login__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 1.1em;
}

.page-login__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.page-login__faq-section {
  padding: 50px 0;
  background: var(--bg-primary); /* Background color */
  margin-bottom: 40px;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-secondary); /* Card BG color */
}
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: rgba(46, 122, 78, 0.2); /* Hover with border color tint */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow); /* Glow color for toggle */
  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: var(--deep-green); /* Deep Green for answer background */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

.page-login__cta-section {
  padding: 50px 0;
  text-align: center;
  background: linear-gradient(90deg, #0A4B2C 0%, #11A84E 100%); /* Deep Green to Primary */
  color: #ffffff;
  margin-bottom: 40px;
  border-radius: 10px;
}

.page-login__cta-section .page-login__section-title {
  color: var(--gold);
}

.page-login__cta-section .page-login__text-block {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1em;
  color: #F2FFF6;
}

.page-login__btn-large {
  max-width: 300px;
  margin: 0 auto;
}

.page-login__copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  color: var(--text-secondary);
  background: var(--bg-secondary); /* Card BG color */
  border-top: 1px solid var(--divider);
}

/* Responsive styles */
@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;
  }
  .page-login__hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-login__description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }
}

@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;
  }
  /* Specific overrides for login page hero content on desktop */
  .page-login__hero-section {
    padding-top: 0; /* No extra padding on desktop as hero-content is absolute */
    margin-bottom: 60px;
  }
  .page-login__hero-content {
    background: rgba(8, 22, 15, 0.85); /* Slightly darker overlay for desktop */
    padding: 30px;
  }
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__description {
    font-size: 1.2em;
  }
  .page-login__benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-login__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-login__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-login__form-section, .page-login__benefits-section, .page-login__security-section, .page-login__faq-section, .page-login__cta-section {
    margin-bottom: 30px;
    padding: 30px 0;
  }
  .page-login__form {
    padding: 20px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card {
    padding: 20px;
  }
  .page-login__benefit-icon {
    max-width: 200px;
  }
  .page-login__security-section .page-login__text-block {
    font-size: 1em;
  }
  .page-login__security-image {
    max-width: 100%;
  }
  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 1em; }
  .page-login__faq-toggle { font-size: 20px; width: 24px; }
  details.page-login__faq-item .page-login__faq-answer { padding: 0 15px 15px; }

  /* Mobile image adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-image, .page-login__benefit-icon, .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__container,
  .page-login__form,
  .page-login__benefits-grid,
  .page-login__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__hero-content {
    width: calc(100% - 30px);
    left: 15px;
    transform: translate(0, -50%);
    max-width: none;
  }
  /* Mobile button adaptation */
  .page-login__btn-primary,
  .page-login__btn-large,
  .page-login__forgot-password,
  .page-login__register-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__cta-section .page-login__btn-primary {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bg-primary: #08160F; /* Background */
  --bg-secondary: #11271B; /* Card BG */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-login {
  color: var(--text-main); /* Ensure text is light on dark background */
  background-color: var(--bg-primary);
}

.page-login__form-section {
  background-color: var(--bg-secondary);
}

.page-login__faq-item {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.page-login__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Blend with border-color for hover */
}

.page-login__faq-toggle {
  color: var(--glow);
}

.page-login__faq-answer {
  background-color: var(--deep-green);
  color: var(--text-secondary);
}

.page-login__hero-content {
  color: var(--text-main);
  background: rgba(8, 22, 15, 0.7);
}

.page-login__main-title {
  color: var(--gold);
}

.page-login__description {
  color: var(--text-secondary);
}

.page-login__section-title {
  color: var(--text-main);
}

.page-login__form-label {
  color: var(--text-main);
}

.page-login__form-input {
  background-color: var(--deep-green);
  color: var(--text-main);
  border-color: var(--border-color);
}

.page-login__form-input::placeholder {
  color: var(--text-secondary);
}

.page-login__forgot-password {
  color: var(--text-secondary);
}

.page-login__forgot-password:hover {
  color: var(--glow);
}

.page-login__register-prompt {
  color: var(--text-secondary);
}

.page-login__register-link {
  color: var(--glow);
}

.page-login__register-link:hover {
  color: var(--gold);
}

.page-login__benefit-card {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.page-login__benefit-title {
  color: var(--text-main);
}

.page-login__benefit-description {
  color: var(--text-secondary);
}

.page-login__security-section {
  background-color: var(--bg-secondary);
}

.page-login__security-section .page-login__text-block {
  color: var(--text-secondary);
}

.page-login__faq-qtext {
  color: var(--text-main);
}

.page-login__cta-section {
  background: linear-gradient(90deg, var(--deep-green) 0%, var(--color-primary) 100%);
  color: var(--text-main);
}

.page-login__cta-section .page-login__section-title {
  color: var(--gold);
}

.page-login__cta-section .page-login__text-block {
  color: var(--text-main);
}

.page-login__copyright {
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border-top-color: var(--divider);
}
/* Placeholder for homepage-specific CSS as per requirements, even if not directly used by login.html */
.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;} /* Placeholder: Promo strip, Hot games, Winner ticker, etc. */