.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

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

.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for hero */
    padding-top: var(--header-offset, 120px); /* Desktop fixed header offset */
}

.page-login__main-title {
    font-size: 2.8em;
    color: #FFFF00; /* Highlighted title color */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-login__description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.1); /* Translucent white for contrast */
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    margin: 40px auto 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-login__login-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__login-form {
    width: 100%;
    text-align: left;
}

.page-login__form-title {
    font-size: 2em;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-align: center;
}

.page-login__input-group {
    margin-bottom: 20px;
}

.page-login__label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: bold;
}

.page-login__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__input::placeholder {
    color: #ccc;
}

.page-login__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
}

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

.page-login__forgot-password-link:hover {
    color: #fff;
}

.page-login__login-button {
    background-color: #C30808; /* Login button background */
    color: #FFFF00; /* Login button text */
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__login-button:hover {
    background-color: #a00606;
}

.page-login__register-prompt {
    color: #f0f0f0;
    text-align: center;
    font-size: 1em;
}

.page-login__register-link {
    color: #017439; /* Brand color for register link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #00a050;
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Highlighted title color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-login__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__paragraph {
    font-size: 1em;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for this section */
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.05); /* Lighter translucent background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 200px; /* Min size 200x200 */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for benefit titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-text {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #121212; /* Main body background color */
}

.page-login__security-section .page-login__container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-login__text-content {
    flex: 1;
}

.page-login__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-login__btn-primary {
    display: inline-block;
    background-color: #017439; /* Brand color for primary buttons */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary:hover {
    background-color: #00a050;
}

/* Games Section */
.page-login__games-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-login__game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-login__game-card h3 {
    padding: 15px 20px 0;
    font-size: 1.4em;
    color: #FFFF00; /* Highlighted text color */
    font-weight: bold;
}

.page-login__game-card h3 a {
    color: inherit;
    text-decoration: none;
}

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

.page-login__game-description {
    padding: 0 20px 20px;
    color: #f0f0f0;
    font-size: 0.95em;
    flex-grow: 1; /* Push footer to bottom if content is short */
}

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

.page-login__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Brand color for secondary button text */
    border: 2px solid #017439;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #121212;
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #017439; /* Brand color for toggle icon */
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Bottom CTA Section */
.page-login__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__login-card {
        padding: 30px 20px;
        margin-top: 30px;
    }
    .page-login__form-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-login__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .page-login__login-button,
    .page-login__btn-primary,
    .page-login__btn-secondary {
        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__section-title {
        font-size: 1.8em;
    }
    .page-login__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

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

    .page-login__security-section .page-login__container {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__flex-reverse-mobile {
        flex-direction: column-reverse; /* For security section image/text order */
    }

    .page-login__game-card {
        height: auto; /* Allow height to adjust */
    }
    .page-login__game-image {
        height: 180px; /* Adjust image height */
    }

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

    .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__login-card,
    .page-login__benefit-item,
    .page-login__game-card,
    .page-login__faq-item,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__image-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__form-title {
        font-size: 1.4em;
    }
    .page-login__faq-title {
        font-size: 1.1em;
    }
}