/* Verbatim homepage CSS blocks for 1023px and 1024px as requested, even if not directly used on this 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 styles for the login page */
.page-login {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
}

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

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E; /* Custom Border */
}

.page-login__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-login__description {
  font-size: 18px;
  line-height: 1.6;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

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

.page-login__form-section {
  padding: 60px 20px;
  background-color: #08160F; /* Custom Background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-container {
  background-color: #11271B; /* Custom Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-login__form-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #F2FFF6; /* Custom Text Main */
}

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

.page-login__form-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  background-color: rgba(17, 39, 27, 0.6); /* Slightly lighter than Card BG for input */
  color: #F2FFF6; /* Custom Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(167, 217, 184, 0.6); /* Lighter placeholder */
}

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D; /* Custom Glow */
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-login__forgot-password {
  color: #A7D9B8; /* Custom Text Secondary */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D; /* Custom Glow */
}

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

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #2E7A4E;
  border-radius: 4px;
  background-color: rgba(17, 39, 27, 0.6);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.page-login__checkbox:checked {
  background-color: #2AD16F;
  border-color: #2AD16F;
}

.page-login__checkbox:checked::before {
  content: '✓';
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.page-login__checkbox-label {
  color: #A7D9B8;
  cursor: pointer;
}

.page-login__submit-button {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__register-link {
  color: #57E38D; /* Custom Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #F2C14E; /* Custom Gold */
}

.page-login__security-section, .page-login__benefits-section, .page-login__faq-section {
  padding: 60px 20px;
  background-color: #08160F; /* Custom Background */
  border-top: 1px solid #1E3A2A; /* Custom Divider */
}

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

.page-login__section-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

.page-login__feature-card {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-login__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(87, 227, 141, 0.5)); /* Custom Glow */
}

.page-login__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__benefits-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-login__benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  background-color: #11271B; /* Custom Card BG */
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Custom Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  font-size: 24px;
  margin-right: 15px;
  color: #57E38D; /* Custom Glow */
  flex-shrink: 0;
}

.page-login__benefit-text {
  font-size: 17px;
  line-height: 1.6;
  color: #F2FFF6; /* Custom Text Main */
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 16px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  flex-grow: 1; /* Allow buttons to grow */
  flex-basis: 250px; /* Minimum width for buttons */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Custom Glow */
  border: 2px solid #57E38D; /* Custom Glow */
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.2);
}

.page-login__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(87, 227, 141, 0.1);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

/* FAQ Section */
details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Custom Border */
  overflow: hidden;
  background: #11271B; /* Custom Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
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;
  color: #F2FFF6; /* Custom Text Main */
}
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(17, 39, 27, 0.8); /* Slightly darker hover */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Custom Glow */
  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: rgba(17, 39, 27, 0.6); /* Lighter than Card BG */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 16px;
  line-height: 1.6;
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 15px;
  }

  .page-login__hero-section {
    padding: 30px 15px;
  }

  .page-login__main-title {
    font-size: 28px; /* Clamp handles this, but explicit for clarity */
  }

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

  .page-login__form-section {
    padding: 40px 15px;
  }

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

  .page-login__form-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .page-login__form-input {
    padding: 12px 15px;
    font-size: 15px;
  }

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

  .page-login__submit-button {
    font-size: 16px;
    padding: 14px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-prompt {
    margin-top: 20px;
    font-size: 15px;
  }

  .page-login__security-section, .page-login__benefits-section, .page-login__faq-section {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 26px; /* Clamp handles this */
  }

  .page-login__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-login__feature-card {
    padding: 25px;
  }

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

  .page-login__feature-text {
    font-size: 15px;
  }

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

  .page-login__benefit-icon {
    font-size: 20px;
    margin-right: 10px;
  }

  .page-login__benefit-text {
    font-size: 15px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 16px;
    padding: 14px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* General image and container responsiveness */
  .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;
  }
}