:root {
    --page-bg: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

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

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-login__hero-content {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 1;
    margin-top: -100px; /* Overlap slightly with image for visual connection */
    background-color: var(--card-bg); /* Dark background for content */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

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

.page-login__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin: 0 auto;
}

.page-login__login-form .page-login__form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    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-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.page-login__forgot-password {
    color: var(--glow-color);
    text-decoration: none;
}

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

.page-login__remember-me {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.page-login__remember-me input {
    margin-right: 8px;
}

.page-login__login-button {
    width: 100%;
    padding: 14px 20px;
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__register-prompt {
    margin-top: 25px;
    text-align: center;
}

.page-login__register-text {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-login__register-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--gold-color);
    color: var(--deep-green);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-login__register-button:hover {
    background-color: #e6b346;
}

/* Sections */
.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--gold-color);
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

.page-login__features-section,
.page-login__why-choose-us,
.page-login__cta-bottom {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-login__games-preview,
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--page-bg);
}

/* Features Grid */
.page-login__features-grid,
.page-login__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-login__feature-card,
.page-login__why-choose-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-login__feature-icon,
.page-login__why-choose-icon {
    width: 200px; /* Explicitly set to 200px as per min size */
    height: 200px; /* Explicitly set to 200px as per min size */
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 5px var(--glow-color)); /* Add a subtle glow */
}

.page-login__feature-title,
.page-login__why-choose-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-login__feature-text,
.page-login__why-choose-text {
    color: var(--text-secondary);
    font-size: 1em;
}

/* Game Cards Grid */
.page-login__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.page-login__game-card:hover {
    transform: translateY(-8px);
}

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-login__game-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 20px 15px 10px 15px;
    color: var(--gold-color);
}

.page-login__game-title a {
    color: var(--gold-color);
    text-decoration: none;
}

.page-login__game-title a:hover {
    text-decoration: underline;
}

.page-login__game-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    padding: 0 15px 20px 15px;
}

.page-login__btn-small {
    display: inline-block;
    padding: 8px 18px;
    background: var(--btn-gradient);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.page-login__btn-small:hover {
    opacity: 0.9;
}

/* CTA Buttons */
.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
}

.page-login__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--deep-green);
    transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-login__faq-item summary:hover {
    background-color: var(--deep-green);
}

.page-login__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__features-grid,
    .page-login__game-cards-grid,
    .page-login__why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
    }
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__features-section,
    .page-login__games-preview,
    .page-login__why-choose-us,
    .page-login__faq-section,
    .page-login__cta-bottom {
        padding: 40px 0;
    }

    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .page-login__remember-me {
        margin-top: 10px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Limit width for very small screens */
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__hero-content,
    .page-login__login-form-wrapper,
    .page-login__features-grid,
    .page-login__game-cards-grid,
    .page-login__why-choose-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-login__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }
    /* Ensure feature/why-choose icons are not too small */
    .page-login__feature-icon,
    .page-login__why-choose-icon {
        width: 150px !important; /* Make them slightly smaller for mobile but still large */
        height: 150px !important;
        min-width: 150px !important;
        min-height: 150px !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__login-form-wrapper {
        width: 100%;
    }
    .page-login__cta-buttons {
        gap: 10px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}

/* Ensure no filter on images as per requirements */
.page-login img {
    filter: none;
}
/* Except for hero image for readability */
.page-login__hero-image {
    filter: brightness(0.6);
}

/* Ensure content area images are not too small */
.page-login__game-image {
    min-width: 200px;
    min-height: 200px;
    height: auto; /* Allow auto height for responsiveness */
}