/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Default background */
  padding-top: 10px; /* Small top padding for non-homepage */
}

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

.page-login__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
}

.page-login__card {
  background: #FFFFFF;
  color: #333333;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  height: 400px; /* Fixed height for consistency */
  overflow: hidden;
  position: relative;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__subtitle {
  font-size: 18px;
  color: #F0F0F0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Section */
.page-login__form-section {
  padding: 50px 0;
  background-color: #F5F7FA;
}

.page-login__form-section .page-login__card {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
}

.page-login__card-title {
  font-size: 28px;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
}

.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 #E0E0E0;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #FF5A4F;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, 0.2);
  outline: none;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__forgot-password {
  color: #E53935;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

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

.page-login__register-text {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #333333;
}

.page-login__register-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Buttons */
.page-login__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-primary:active {
  transform: translateY(0);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__benefit-item {
  padding: 25px;
  text-align: left;
}

.page-login__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  display: block;
}

.page-login__benefit-title {
  font-size: 22px;
  color: #E53935;
  margin-bottom: 10px;
}

.page-login__benefit-description {
  font-size: 15px;
  color: #333333;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__security-item {
  padding: 25px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.page-login__security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-title {
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-login__security-description {
  font-size: 15px;
  color: #F0F0F0;
}

/* FAQ Section */
div.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

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;
  color: #333333;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__cta-description {
  font-size: 18px;
  color: #F0F0F0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  min-width: 200px;
  padding: 15px 30px;
  font-size: 18px;
}

/* Color Contrast Classes */
.page-login__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-login__light-bg {
  background: #F5F7FA;
  color: #333333;
}

/* Responsive Design */
/* Mobile/Tablet specific styles */
@media (max-width: 1023px) {
  /* Placeholder for homepage game trial CSS - not applied as HTML elements are absent */
  .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__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .page-login__subtitle {
    font-size: 16px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__card-title {
    font-size: 24px;
  }
  .page-login__benefits-grid, .page-login__security-grid {
    grid-template-columns: 1fr;
  }
  .page-login__form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .page-login__btn-primary {
    width: 100%;
    max-width: 100%;
  }
  .page-login__hero-image-wrapper {
    height: 300px;
  }
  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 1024px) {
  /* Placeholder for homepage game trial CSS - not applied as HTML elements are absent */
  .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__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-bottom: 20px;
  }
  .page-login__hero-image-wrapper {
    height: 250px;
  }
  .page-login__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .page-login__subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-login__form-section .page-login__card {
    padding: 30px 20px;
  }
  .page-login__card-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .page-login__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-login__forgot-password, .page-login__register-text, .page-login__register-link {
    font-size: 14px;
  }
  .page-login__btn-primary {
    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;
    font-size: 15px;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__benefits-section, .page-login__security-section, .page-login__cta-section {
    padding: 40px 0;
  }
  .page-login__benefit-item, .page-login__security-item {
    padding: 20px;
  }
  .page-login__benefit-image {
    height: 180px;
  }
  .page-login__benefit-title {
    font-size: 20px;
  }
  .page-login__security-icon {
    width: 70px;
    height: 70px;
  }
  .page-login__security-title {
    font-size: 18px;
  }
  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }
  .page-login__faq-answer { padding: 0 15px 15px; }
  .page-login__cta-description {
    font-size: 16px;
  }
  .page-login__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section, .page-login__card, .page-login__container, .page-login__hero-content, .page-login__form-actions, .page-login__benefits-grid, .page-login__security-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile button container for flex-wrap */
  .page-login__form-actions {
    display: flex;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Common styles for elements that might appear in homepage sections, included as per strict instructions */
/* This CSS is included but will not apply to login.html as the corresponding HTML elements are not present */
.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__promo-strip-track{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;overflow-x:hidden;}
.page-login__hot-games-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:15px;}
.page-login__hot-games-item{text-align:center;}
.page-login__hot-games-item img{width:100%;height:auto;border-radius:8px;}
.page-login__hot-games-name, .page-login__hot-games-rtp, .page-login__hot-games-desc{display:block;margin-top:8px;font-size:14px;color:#333;}
.page-login__promo-strip-item{display:flex;align-items:center;background:#fff;border-radius:8px;overflow:hidden;}
.page-login__promo-strip-item img{height:auto;object-fit:cover;flex-shrink:0;}
.page-login__promo-strip-content{padding:10px;text-align:left;}
.page-login__promo-strip-title{font-size:16px;font-weight:600;color:#E53935;margin-bottom:5px;}
.page-login__promo-strip-desc{font-size:13px;color:#666;}
.page-login__reward-modal-close { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: #fff; background: none; border: none; }