/* style/login.css */
/* Base styles for page-login, ensuring contrast with body background (assuming light body background from shared.css) */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    padding-top: 0; /* body handles header offset */
}

.page-login__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Adjust height for visual impact */
    overflow: hidden;
}

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

.page-login__hero-content {
    text-align: center;
    padding: 30px 15px;
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.9) 0%, rgba(255, 90, 79, 0.9) 100%); /* Main color gradient */
    color: #ffffff;
}

.page-login__main-title {
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.8em, 2.5vw, 2.5em);
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__section-title {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #333333;
}

.page-login__form {
    max-width: 450px;
    margin: 0 auto;
    background: #FFFFFF; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E0E0; /* Border */
}

.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: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-login__forgot-password-link {
    color: #E53935; /* Main color */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #FF5A4F; /* Auxiliary color */
}

.page-login__login-button,
.page-login__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    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;
}

.page-login__login-button:hover,
.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-login__register-prompt {
    text-align: center;
    font-size: 0.95em;
    color: #333333;
    margin-top: 20px;
}

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

.page-login__register-link:hover {
    color: #FF5A4F; /* Auxiliary color */
}

/* Features Section */
.page-login__features-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Main color gradient for dark section */
    color: #ffffff; /* Forced white text for dark background */
    text-align: center;
}

.page-login__features-section .page-login__section-title {
    color: #ffffff; /* White text for dark background */
    margin-bottom: 40px;
}

.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.15);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

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

.page-login__feature-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-login__feature-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Download Section */
.page-login__download-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
    text-align: center;
}

.page-login__download-section .page-login__section-title {
    color: #333333;
    margin-bottom: 20px;
}

.page-login__download-section .page-login__description {
    color: #555555;
    margin-bottom: 40px;
}

.page-login__download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-login__download-image {
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__mobile-mockup {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-login__download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__download-btn {
    display: block;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 5px;
    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;
}

.page-login__btn-secondary {
    background: #ffffff;
    color: #E53935; /* Main color */
    border: 2px solid #E53935;
}

.page-login__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Card BG */
}

.page-login__faq-section .page-login__section-title {
    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 #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: #555555;
}

/* Responsive Styles - MANDATED INCLUSION FOR HOMEPAGE GAME TRIAL CSS */
@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;
  }
  .page-login__promo-strip {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
    .page-login__hero-section .page-login__hero-image-wrapper {
        height: 200px;
    }
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__description {
        font-size: 1em;
    }

    .page-login__form {
        padding: 20px;
        margin: 0 15px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__login-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        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;
    }
    .page-login__forgot-password-link {
        order: 2; /* Move below login button */
    }

    .page-login__features-grid {
        grid-template-columns: 1fr;
    }
    .page-login__feature-item {
        padding: 25px 15px;
    }

    .page-login__download-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__download-image {
        max-width: 250px;
    }
    .page-login__download-buttons {
        max-width: 280px;
        padding: 0 15px;
    }

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

    /* General image responsiveness for all images within .page-login */
    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-login__container,
    .page-login__section,
    .page-login__download-section,
    .page-login__features-section,
    .page-login__form-section,
    .page-login__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Placeholder for homepage specific modules if they were present */
    .page-login__promo-strip-track {
        grid-template-columns: repeat(4,1fr); /* Ensure it doesn't break if exists */
        overflow-x: hidden;
    }
    .page-login__hot-games-grid {
        grid-template-columns: repeat(2,1fr); /* Ensure it doesn't break if exists */
    }
    .page-login__brand-intro {
        display: block; /* Ensure it shows if meant for mobile */
    }
}

/* Specific CSS for homepage modules that are mandated to be included in CSS output */
/* Placeholder for homepage promo-strip */
.page-login__promo-strip {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}
.page-login__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.page-login__promo-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.page-login__promo-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.page-login__promo-card-content {
    padding: 15px;
}
.page-login__promo-card-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E53935;
}
.page-login__promo-card-text {
    font-size: 0.9em;
    color: #555;
}

/* Placeholder for homepage hot-games */
.page-login__hot-games {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 15px;
    text-align: center;
}
.page-login__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.page-login__hot-games-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.page-login__hot-games-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}
.page-login__hot-games-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.page-login__hot-games-rtp {
    font-size: 0.85em;
    color: #E53935;
    margin-bottom: 10px;
}
.page-login__hot-games-desc {
    font-size: 0.8em;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em; /* Approx 2 lines */
}
.page-login__hot-games-btn {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #fff;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 15px;
    text-decoration: none;
    white-space: normal;
    word-wrap: break-word;
}
/* Placeholder for homepage brand-intro (if it exists) */
.page-login__brand-intro {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 15px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 40px;
}
.page-login__brand-intro h2 {
    font-size: 1.8em;
    color: #E53935;
    margin-bottom: 20px;
}
.page-login__brand-intro p {
    font-size: 1.0em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Placeholder for homepage winner-ticker */
.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;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.page-login__winner-ticker-content {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Required game trial overlay styles */
.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;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}
.page-login__reward-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}
.page-login__reward-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    position: relative;
    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;
}

/* body padding for fixed winner ticker if present, to be handled by shared.css */
body.page-login--reward-open {
    overflow: hidden; /* Prevent scrolling when modal is open */
}

/* Custom colors */
.page-login__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}
.page-login__btn-secondary {
    background: #FFFFFF;
    color: #E53935;
    border: 2px solid #E53935;
}
.page-login__dark-section {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    color: #ffffff;
}
.page-login__form {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
}
.page-login__form-input {
    border: 1px solid #E0E0E0;
    color: #333333;
}
.page-login__form-label {
    color: #333333;
}
.page-login__section-title {
    color: #333333;
}
.page-login p,
.page-login li,
.page-login__feature-description {
    color: #333333; /* Default text color, adjusted in dark sections */
}
.page-login__hero-content p {
    color: #ffffff;
}
.page-login__feature-item {
    color: #ffffff;
}
.page-login__feature-title {
    color: #ffffff;
}
.page-login__feature-description {
    color: #f0f0f0;
}
.page-login__faq-qtext {
    color: #333333;
}
.page-login__faq-answer {
    color: #555555;
}