.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Body background is default white */
}

.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, body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  margin-bottom: 20px;
}

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

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

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

.page-login__form-section {
  padding: 60px 0;
  background: #FFFFFF;
}

.page-login__form-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
}

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

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

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

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

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.page-login__btn-login {
  width: 100%;
  padding: 15px;
  background: #C30808; /* Login button color */
  border: none;
  border-radius: 5px;
  color: #FFFF00; /* Login font color */
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__btn-text-login, .page-login__btn-text-register {
  color: #FFFF00; /* Login/Register font color */
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  color: #555555;
}

.page-login__btn-register-link {
  display: inline-block;
  margin-top: 10px;
  color: #C30808; /* Register button color (as text link) */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__features-section {
  padding: 60px 0;
  background: #017439; /* Brand green background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-login__faq-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.page-login__faq-list {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  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: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-login__cta-section {
  padding: 60px 0;
  background: #017439;
  color: #ffffff;
  text-align: center;
}

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

.page-login__cta-section .page-login__description {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #C30808; /* Register button color */
  border: 2px solid #C30808;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00606;
  transform: translateY(-2px);
}

/* General image responsive styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 1023px) {
  .page-login__hero-section {
    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;
  }
  /* No game trial section on login page, so these rules are not directly applied but kept for completeness if context changes */
  .page-login__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    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;
    aspect-ratio: 1024 / 768;
    min-height: 240px;
    max-height: none !important;
    flex: none !important;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
  }
  .page-login__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !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) {
  /* These rules are for homepage grid layout, not applicable to login page in this context */
  .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;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    margin-bottom: 20px;
    padding-top: 5px;
  }
  .page-login__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-login__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-login__form-section, .page-login__features-section, .page-login__faq-section, .page-login__cta-section {
    padding: 30px 0;
  }
  .page-login__form-card {
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-login, .page-login__btn-primary, .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__feature-item {
    padding: 20px;
  }
  .page-login__feature-title {
    font-size: 1.3rem;
  }
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 1rem;
  }
  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image specific mobile rules */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__container, .page-login__form-card, .page-login__feature-item, .page-login__faq-item, .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}

.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;}
.page-login__btn-text-login{color:#FFFF00;}
.page-login__btn-text-register{color:#FFFF00;}
.page-login__btn-register-link .page-login__btn-text-register { color: #C30808; }