:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow: #4FA8FF;
    --gold: #F2C14E;
    --divider: #1B3357;
    --deep-navy: #08162B;
}

.page-login {
    color: var(--text-main); /* #F3F8FF */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--deep-navy); /* #08162B from shared, matching body */
}

.page-login__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Hero Section --- */
.page-login__hero-section {
    padding-top: 10px; /* Adhering to ~10px top padding, not var(--header-offset) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: var(--deep-navy); /* Ensure consistent background */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-login__hero-content {
    padding: 30px 20px;
    z-index: 1;
    max-width: 800px;
    background: var(--deep-navy); /* Match body bg to blend */
    border-radius: 10px;
    margin-top: 20px; /* Space after the image */
}

.page-login__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Using clamp for H1 font-size */
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-login__login-form-wrapper {
    background: var(--card-bg); /* #10233F */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    margin: 30px auto 0;
    border: 1px solid var(--border-color); /* #244D84 */
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color); /* #244D84 */
    border-radius: 5px;
    background-color: var(--deep-navy); /* #08162B */
    color: var(--text-main); /* #F3F8FF */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--text-secondary); /* #AFC4E8 */
    opacity: 0.7;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    gap: 15px;
}

.page-login__forgot-password-link {
    color: var(--glow); /* #4FA8FF */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: var(--gold); /* #F2C14E */
}

.page-login__btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: var(--button-gradient); /* linear-gradient(180deg, #2B73F6 0%, #1144A6 100%) */
    color: var(--text-main); /* #F3F8FF */
    box-shadow: 0 3px 10px rgba(17, 59, 122, 0.4);
}

.page-login__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-login__register-prompt {
    margin-top: 25px;
    color: var(--text-secondary); /* #AFC4E8 */
    font-size: 0.95em;
}

.page-login__register-link {
    color: var(--glow); /* #4FA8FF */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: var(--gold); /* #F2C14E */
}

/* --- General Section Styles --- */
.page-login__section {
    padding: 50px 0;
    margin-bottom: 20px;
    background-color: var(--deep-navy); /* Default to body bg */
}

.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold); /* #F2C14E */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__text-block {
    font-size: 1em;
    color: var(--text-secondary); /* #AFC4E8 */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* --- Benefits Section --- */
.page-login__benefits-grid,
.page-login__security-features,
.page-login__registration-steps,
.page-login__games-grid,
.page-login__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-login__benefit-card,
.page-login__step-card,
.page-login__promo-card {
    background: var(--card-bg); /* #10233F */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color); /* #244D84 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-login__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__card-title {
    font-size: 1.4em;
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-description {
    font-size: 0.95em;
    color: var(--text-secondary); /* #AFC4E8 */
    flex-grow: 1;
}

/* --- Security Section --- */
.page-login__security-section {
    background-color: var(--deep-navy); /* #08162B */
}

.page-login__feature-item {
    background: var(--card-bg); /* #10233F */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color); /* #244D84 */
}

.page-login__feature-icon {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__feature-title {
    font-size: 1.3em;
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__feature-description {
    font-size: 0.9em;
    color: var(--text-secondary); /* #AFC4E8 */
}

/* --- Registration Guide Section --- */
.page-login__registration-guide {
    background-color: var(--deep-navy); /* #08162B */
}

.page-login__step-card {
    position: relative;
    padding-top: 50px; /* Space for step number */
}

.page-login__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold); /* #F2C14E */
    color: var(--deep-navy); /* #08162B */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--border-color); /* #244D84 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
    font-size: 1.3em;
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-description {
    font-size: 0.95em;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-login__cta-register {
    text-align: center;
    margin-top: 40px;
}

.page-login__btn-secondary {
    background: transparent;
    color: var(--gold); /* #F2C14E */
    border: 2px solid var(--gold); /* #F2C14E */
}

.page-login__btn-secondary:hover {
    background: var(--gold); /* #F2C14E */
    color: var(--deep-navy); /* #08162B */
    transform: translateY(-2px);
}

/* --- Games Section --- */
.page-login__games-section {
    background-color: var(--deep-navy); /* #08162B */
}

.page-login__game-card {
    background: var(--card-bg); /* #10233F */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color); /* #244D84 */
    text-align: center;
    padding-bottom: 20px;
}

.page-login__game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-login__game-title {
    font-size: 1.4em;
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 10px;
    padding: 0 15px;
    font-weight: bold;
}

.page-login__game-description {
    font-size: 0.9em;
    color: var(--text-secondary); /* #AFC4E8 */
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-login__game-link {
    display: inline-block;
    background: var(--button-gradient); /* linear-gradient(180deg, #2B73F6 0%, #1144A6 100%) */
    color: var(--text-main); /* #F3F8FF */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-login__game-link:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* --- Promotions Section --- */
.page-login__promotions-section {
    background-color: var(--deep-navy); /* #08162B */
}

.page-login__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* --- FAQ Section --- */
.page-login__faq-section {
    background-color: var(--deep-navy); /* #08162B */
}

.page-login__faq-list {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__faq-item {
    background: var(--card-bg); /* #10233F */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color); /* #244D84 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.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.15em;
    font-weight: bold;
    color: var(--text-main); /* #F3F8FF */
    transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
    background-color: rgba(29, 95, 209, 0.1); /* Slight hover effect */
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow); /* #4FA8FF */
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−"; /* Change to minus when open */
    color: var(--gold); /* #F2C14E */
}

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

.page-login__faq-answer p {
    margin-top: 10px;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-login__support-cta {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-login__support-link {
    color: var(--glow); /* #4FA8FF */
    text-decoration: none;
    font-weight: bold;
}

.page-login__support-link:hover {
    color: var(--gold); /* #F2C14E */
}

/* --- Final CTA Section --- */
.page-login__final-cta {
    padding: 60px 0;
    text-align: center;
    background-color: var(--deep-navy); /* #08162B */
}

.page-login__text-center {
    text-align: center;
}

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

.page-login__btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
    min-width: 200px;
}

/* Dark background utility class */
.page-login__dark-bg {
    background-color: var(--card-bg); /* #10233F */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-login__hero-content {
        padding: 20px;
    }

    .page-login__main-title {
        font-size: 2.5em;
    }

    .page-login__description {
        font-size: 1em;
    }

    .page-login__form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-login__btn {
        width: 100%;
    }

    .page-login__section {
        padding: 40px 0;
    }

    .page-login__section-title {
        font-size: 2em;
    }

    .page-login__text-block {
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__registration-steps,
    .page-login__games-grid,
    .page-login__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-login__card-image,
    .page-login__feature-icon,
    .page-login__game-image {
        height: 180px;
    }

    .page-login__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-login__faq-answer {
        padding: 0 20px 15px;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn-large {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .page-login__hero-image {
        max-height: 300px;
    }

    .page-login__main-title {
        font-size: 2em;
    }

    .page-login__login-form-wrapper {
        padding: 20px;
    }

    .page-login__section-title {
        font-size: 1.8em;
    }

    .page-login__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }

    .page-login__step-card {
        padding-top: 45px;
    }
}