/* style/login.css */
.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 handled by shared.css */
}

.page-login__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2e);
    color: #ffffff;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-login__login-form-wrapper {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #005f2e;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #ffffff;
    font-size: 1em;
}

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

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

.page-login__forgot-password-link {
    color: #FFFF00; /* Custom color for login font */
    text-decoration: none;
}

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

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

.page-login__checkbox {
    accent-color: #017439;
}

.page-login__checkbox-label {
    color: #ffffff;
}

.page-login__login-button {
    background-color: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom color for login font */
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Ensure button link looks like a button */
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.page-login__login-button-link {
    color: #FFFF00; /* Custom color for login font */
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

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

.page-login__no-account-text {
    margin-top: 20px;
    font-size: 0.95em;
    color: #ffffff;
}

.page-login__register-link {
    color: #FFFF00; /* Custom color for register font */
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

.page-login__download-app-button {
    background-color: #017439; /* Primary color */
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.page-login__download-app-button:hover {
    background-color: #005f2e;
}

.page-login__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

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

.page-login__section {
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    background-color: #0a0a0a; /* Ensure text is light on this dark background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

.page-login__highlight {
    color: #FFFF00;
    font-weight: bold;
}

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

.page-login__feature-card, .page-login__security-item, .page-login__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
}

.page-login__feature-title, .page-login__security-title, .page-login__game-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-login__feature-description, .page-login__security-description, .page-login__game-description {
    font-size: 1em;
    color: #e0e0e0;
}

.page-login__section-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__how-to-login-section {
    background-color: #017439; /* Primary color */
    color: #ffffff;
}

.page-login__light-text {
    color: #f0f0f0;
}

.page-login__step-by-step-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-login__step-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    color: #ffffff;
}

.page-login__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-login__step-subtitle {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-login__step-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-login__explore-games-section {
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-login__game-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-login__game-link:hover {
    background-color: #005f2e;
}

.page-login__faq-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    list-style: none; /* For details/summary */
}

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

.page-login__faq-qtext {
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: #e0e0e0;
}

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

.page-login__faq-link {
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__cta-section {
    background-color: #017439; /* Primary color */
    padding-bottom: 80px;
}

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

.page-login__btn-primary, .page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register font */
    border: 2px solid transparent;
}

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

.page-login__btn-secondary {
    background-color: #0d0d0d; /* Dark background */
    color: #ffffff;
    border: 2px solid #FFFF00; /* Border with custom font color */
}

.page-login__btn-secondary:hover {
    background-color: #1a1a1a;
    border-color: #ffffff;
    color: #FFFF00;
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-login__hero-content {
        margin-bottom: 30px;
    }
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 25px;
    }
    .page-login__login-button, .page-login__download-app-button {
        font-size: 1em;
        padding: 10px 15px;
    }

    .page-login__section {
        padding: 40px 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-intro {
        font-size: 0.95em;
    }
    .page-login__feature-grid, .page-login__security-grid, .page-login__game-grid, .page-login__step-by-step-guide {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__feature-card, .page-login__security-item, .page-login__game-card, .page-login__step-card {
        padding: 20px;
    }
    .page-login__feature-title, .page-login__security-title, .page-login__game-title, .page-login__step-title, .page-login__step-subtitle {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary, .page-login__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        font-size: 1.05em;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__container,
    .page-login__feature-card,
    .page-login__security-item,
    .page-login__game-card,
    .page-login__step-card,
    .page-login__faq-item,
    .page-login__login-form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}

/* Ensure contrast for specific elements if needed on different backgrounds */
.page-login__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #0d0d0d;
    color: #ffffff;
}

/* Custom color override for buttons to ensure contrast */
.page-login__login-button,
.page-login__btn-primary {
    background-color: #C30808;
    color: #FFFF00; /* Ensure this is visible on red */
}

.page-login__btn-secondary {
    background-color: transparent;
    border: 2px solid #FFFF00;
    color: #FFFF00;
}

.page-login__btn-secondary:hover {
    background-color: #FFFF00;
    color: #0a0a0a;
}

.page-login__forgot-password-link,
.page-login__register-link,
.page-login__faq-toggle,
.page-login__game-link,
.page-login__faq-link {
    color: #FFFF00; /* Ensure link visibility */
}

.page-login__hero-section .page-login__forgot-password-link, 
.page-login__hero-section .page-login__register-link {
    color: #FFFF00;
}