/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Dark body background #000000, so light text */
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-login__section-title {
    font-size: 3em;
    color: #ffffff; /* Default for dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.page-login__hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: none; /* Ensure no image filters are used */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-login__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for card on dark bg */
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__login-card-title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: bold;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
    border-color: #26A9E0;
    background-color: rgba(0, 0, 0, 0.5);
    outline: none;
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    top: -1px; /* Adjust vertical alignment */
}

.page-login__checkbox:checked {
    background-color: #26A9E0;
    border-color: #26A9E0;
}

.page-login__checkbox:checked::before {
    content: '✔';
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

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

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__btn-submit {
    width: 100%;
    padding: 15px 20px;
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-submit:hover {
    background-color: #d46f06;
    transform: translateY(-2px);
}

.page-login__register-text {
    color: #ffffff;
    margin-top: 30px;
    font-size: 1em;
}

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Benefits Section */
.page-login__benefits-section {
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
    padding: 80px 0;
    color: #ffffff; /* Light text on dark background */
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-10px);
    background: rgba(38, 169, 224, 0.2); /* Brand color highlight on hover */
}

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

.page-login__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Games Preview Section */
.page-login__games-preview {
    background-color: #000000; /* Dark background */
    padding: 80px 0;
    color: #ffffff; /* Light text on dark background */
}

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

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

.page-login__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(38, 169, 224, 0.4);
}

.page-login__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    filter: none; /* Ensure no image filters are used */
}

.page-login__game-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-login__game-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-title a:hover {
    color: #EA7C07;
}

.page-login__game-text {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Ensure text takes up available space */
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
    background-color: #1e87b6;
    border-color: #1e87b6;
    transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

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

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow content to wrap */
}

.page-login__security-text {
    flex: 1;
    min-width: 300px;
}

.page-login__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none; /* Ensure no image filters are used */
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__security-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.page-login__security-item:hover {
    background: rgba(38, 169, 224, 0.15);
}

.page-login__security-feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* CTA Section */
.page-login__cta-section {
    background-color: #000000;
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
}

.page-login__cta-wrapper {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-login__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none; /* Ensure no image filters are used */
}

.page-login__btn-cta {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.3em;
    background-color: #EA7C07; /* Orange for CTA button */
    color: #ffffff;
    border: 2px solid #EA7C07;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-cta:hover {
    background-color: #d46f06;
    border-color: #d46f06;
    transform: translateY(-3px);
}

.page-login__cta-subtext {
    margin-top: 30px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__cta-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__cta-link:hover {
    color: #EA7C07;
}

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

.page-login__faq-list {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #26A9E0;
    font-weight: bold;
    margin-left: 20px;
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure consistent icon size */
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
    text-align: left;
}

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

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-title {
        font-size: 2.5em;
    }
    .page-login__benefit-title {
        font-size: 1.6em;
    }
    .page-login__game-title {
        font-size: 1.4em;
    }
    .page-login__security-feature-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    /* General mobile adaptations */
    .page-login__container {
        padding: 20px 15px;
    }

    .page-login__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    /* Hero Section */
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing from fixed header */
    }

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

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

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

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

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

    .page-login__form-input {
        padding: 12px 15px;
    }

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

    .page-login__remember-me {
        width: 100%;
    }

    .page-login__forgot-password {
        align-self: flex-end;
    }

    .page-login__btn-submit {
        font-size: 1.1em;
        padding: 12px 15px;
    }

    .page-login__register-text {
        margin-top: 20px;
        font-size: 0.9em;
    }

    /* Benefits Section */
    .page-login__benefits-section {
        padding: 60px 0;
    }

    .page-login__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-item {
        padding: 25px;
    }

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

    /* Games Preview Section */
    .page-login__games-preview {
        padding: 60px 0;
    }

    .page-login__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-login__game-title {
        font-size: 1.3em;
        margin: 15px 15px 8px 15px;
    }

    .page-login__game-text {
        padding: 0 15px 15px 15px;
    }

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

    /* Security Section */
    .page-login__security-section {
        padding: 60px 0;
    }

    .page-login__security-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .page-login__security-item {
        padding: 20px;
        margin-bottom: 15px;
    }

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

    /* CTA Section */
    .page-login__cta-section {
        padding: 60px 0;
    }

    .page-login__cta-wrapper {
        margin-top: 30px;
        gap: 20px;
    }

    .page-login__btn-cta {
        padding: 15px 30px;
        font-size: 1.2em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__cta-subtext {
        margin-top: 20px;
        font-size: 1em;
    }

    /* FAQ Section */
    .page-login__faq-section {
        padding: 60px 0;
    }

    .page-login__faq-list {
        margin-top: 30px;
    }

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

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

    .page-login__faq-title {
        font-size: 1.1em;
    }

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* Ensure all images are responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
}

/* Color contrast enforcement based on body background #000000 (dark) */
.page-login {
    color: #ffffff; /* Default text color for dark body background */
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description,
.page-login__benefits-section .page-login__benefit-text,
.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description,
.page-login__security-section .page-login__security-feature-description,
.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-description,
.page-login__faq-section .page-login__faq-answer p {
    color: #e0e0e0; /* Slightly off-white for better readability on dark subtle backgrounds */
}

/* Specific elements that might have different backgrounds */
.page-login__games-preview .page-login__section-title,
.page-login__games-preview .page-login__section-description,
.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #ffffff;
}

.page-login__benefit-title,
.page-login__game-title a,
.page-login__forgot-password,
.page-login__register-link,
.page-login__cta-link,
.page-login__faq-toggle,
.page-login__security-feature-title {
    color: #26A9E0; /* Brand accent color */
}

.page-login__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border-color: #26A9E0;
}

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

.page-login__btn-submit,
.page-login__btn-cta {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
}

/* Ensure no image filters are used */
.page-login img {
    filter: none;
}