.page-login {
    font-family: Arial, sans-serif;
    color: #F3F8FF; /* Text Main */
    background-color: var(--deep-navy); /* From shared.css */
    line-height: 1.6;
}

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

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

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    margin-top: -150px; /* Pull content up over image slightly for visual flow */
    background: rgba(8, 22, 43, 0.85); /* Deep Navy with transparency */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #244D84; /* Border color */
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-login__description {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-login__login-card {
    background: #10233F; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84; /* Border color */
    max-width: 400px;
    margin: 0 auto;
}

.page-login__login-card-title {
    font-size: 1.8em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 25px;
    font-weight: bold;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #AFC4E8; /* Text Secondary */
    font-size: 0.95em;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #244D84; /* Border color */
    border-radius: 5px;
    background-color: #08162B; /* Deep Navy */
    color: #F3F8FF; /* Text Main */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: #4FA8FF; /* Glow */
    outline: none;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #1D5FD1; /* Auxiliary color */
}

.page-login__checkbox-label {
    color: #AFC4E8; /* Text Secondary */
}

.page-login__forgot-password-link {
    color: #1D5FD1; /* Auxiliary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #4FA8FF; /* Glow */
    text-decoration: underline;
}

.page-login__login-button {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-login__register-prompt {
    color: #AFC4E8; /* Text Secondary */
    margin-top: 25px;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #4FA8FF; /* Glow */
    text-decoration: underline;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__section-subtitle {
    font-size: 1.2em;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefits-section {
    padding: 80px 0;
    background-color: #08162B; /* Deep Navy */
}

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

.page-login__benefit-item {
    background: #10233F; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border color */
    transition: transform 0.3s ease;
}

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

.page-login__benefit-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.6em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-description {
    color: #AFC4E8; /* Text Secondary */
    font-size: 1em;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
    color: #F3F8FF; /* Text Main */
    border: none;
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

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

.page-login__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
    background-color: rgba(242, 193, 78, 0.1);
}

.page-login__security-section {
    padding: 80px 0;
    background-color: #113B7A; /* Main color */
}

.page-login__dark-section {
    color: #F3F8FF; /* Light text for dark backgrounds */
}

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

.page-login__security-item {
    background: #10233F; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border color */
}

.page-login__security-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

.page-login__security-title {
    font-size: 1.5em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__security-description {
    color: #AFC4E8; /* Text Secondary */
    font-size: 0.95em;
}

.page-login__security-cta {
    margin-top: 40px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-section {
    padding: 80px 0;
    background-color: #08162B; /* Deep Navy */
}

.page-login__faq-list {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-login__faq-item {
    background: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F3F8FF;
}

.page-login__faq-item summary {
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #F3F8FF; /* Text Main */
    list-style: none;
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #F2C14E; /* Gold */
    margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−';
}

.page-login__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.7;
}

.page-login__faq-answer p {
    margin: 0;
}

.page-login__faq-answer a {
    color: #1D5FD1; /* Auxiliary color */
    text-decoration: none;
}

.page-login__faq-answer a:hover {
    text-decoration: underline;
}

.page-login__faq-cta {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-login__explore-section {
    padding: 80px 0;
    background-color: #113B7A; /* Main color */
}

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

.page-login__game-card {
    background: #10233F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #F3F8FF; /* Text Main */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-login__game-title {
    font-size: 1.3em;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #F3F8FF;
}

.page-login__explore-cta {
    margin-top: 50px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-bottom-section {
    padding: 80px 0;
    background-color: #08162B; /* Deep Navy */
    text-align: center;
}

/* --- General Image & Button Responsiveness --- */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login__cta-button,
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__cta-buttons,
.page-login__button-group,
.page-login__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* --- Media Queries --- */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-top: -100px;
    }

    .page-login__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

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

    .page-login__section-subtitle {
        font-size: 1.1em;
    }

    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-login__login-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        margin-top: -80px;
        padding: 15px;
        max-width: 95%;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
        margin-bottom: 10px;
    }

    .page-login__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-login__login-card {
        padding: 25px;
        max-width: 100% !important;
    }

    .page-login__login-card-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .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__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-login__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }

    .page-login__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* General Image Responsiveness for content areas */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__explore-section,
    .page-login__cta-bottom-section {
        padding: 40px 0;
    }

    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__games-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-login__benefit-image,
    .page-login__security-icon {
        max-width: 100%;
    }

    .page-login__benefit-title {
        font-size: 1.4em;
    }

    .page-login__security-title {
        font-size: 1.3em;
    }

    .page-login__game-image {
        height: 150px;
    }

    .page-login__game-title {
        font-size: 1.2em;
    }

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

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