/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color on light backgrounds */
    background-color: var(--neon-bg-dark); /* Inherited from shared.css, should be dark */
}

/* Ensure main content text is white on dark body background */
.page-login.page-content {
    color: #ffffff; /* White text on dark body background */
}

/* Sections with brand primary color background */
.page-login__dark-section {
    background-color: #00331A; /* Darkened primary brand color for contrast with white text */
    color: #ffffff;
    padding: 60px 0;
}

.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

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

.page-login__main-title,
.page-login__section-title {
    font-size: 2.8em;
    color: #ffffff; /* White text for titles on dark sections */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__description {
    color: #00331A; /* Darkened primary brand color for titles on light sections */
}

.page-login__description,
.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    margin: 40px auto 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-login__form-group {
    margin-bottom: 10px;
}

.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 #00331A; /* Darkened brand color border */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
}

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

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

.page-login__remember-me {
    color: #ffffff;
}

.page-login__forgot-password {
    color: #FFFF00; /* Custom color for forgot password link */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #ffffff;
}

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

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-primary {
    background-color: #8B0000; /* Darkened red for contrast with white text */
    color: #FFFFFF; /* White text for primary button */
    border: none;
    margin-top: 20px;
}

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

.page-login__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom color for secondary button text */
    border: 2px solid #FFFF00; /* Custom color for secondary button border */
    margin-top: 15px;
}

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

.page-login__download-app-button {
    margin-top: 20px;
}

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #00331A; /* Darkened primary brand color for card titles */
}

.page-login__card-text {
    font-size: 0.95em;
    color: #555555;
}

/* Guide Section */
.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__step-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-login__step-title {
    font-size: 1.3em;
    color: #00331A; /* Darkened primary brand color for step titles */
    margin-bottom: 15px;
}

.page-login__step-text {
    font-size: 0.95em;
    color: #555555;
}

.page-login__cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #f0f0f0;
    border-radius: 12px;
}

.page-login__cta-heading {
    font-size: 1.8em;
    color: #00331A;
    margin-bottom: 15px;
}

.page-login__cta-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-login__game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-login__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__game-card .page-login__card-title a {
    color: #FFFF00; /* Custom color for game card links */
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.page-login__game-card .page-login__card-title a:hover {
    color: #ffffff;
}

.page-login__game-card .page-login__card-text {
    color: #f0f0f0;
    font-size: 0.9em;
}

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

.page-login__troubleshoot-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-login__troubleshoot-heading {
    font-size: 1.3em;
    color: #00331A; /* Darkened primary brand color for troubleshoot headings */
    margin-bottom: 15px;
}

.page-login__troubleshoot-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

/* Security Section */
.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
}

.page-login__feature-heading {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for feature headings */
}

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

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

.page-login__faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    color: #00331A; /* Darkened primary brand color for FAQ questions */
    list-style: none;
}

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

.page-login__faq-question .page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

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

.page-login__faq-answer a {
    color: #00331A; /* Darkened primary brand color for FAQ links */
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-login__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-bottom-section .page-login__section-title {
    color: #FFFF00; /* Custom color for bottom CTA title */
}

.page-login__cta-bottom-section .page-login__section-description {
    color: #ffffff;
}

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

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    max-width: 300px;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__description,
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__hero-section {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 60px;
        min-height: auto;
    }
    .page-login__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-login__section-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .page-login__description,
    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__login-form-wrapper {
        padding: 30px 20px;
        margin-top: 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        font-size: 1em;
        padding: 12px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !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__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding */
    }
    .page-login__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-login__cta-buttons .page-login__btn-primary,
    .page-login__cta-buttons .page-login__btn-secondary {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.6em;
    }
    .page-login__section-title {
        font-size: 1.4em;
    }
    .page-login__login-form-wrapper {
        padding: 25px 15px;
    }
}