/* 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 for light background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.8;
}

.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form */
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    margin: 0 auto;
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #ffffff;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #26A9E0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

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

.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;
    color: #ffffff;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #26A9E0; /* Highlight checkbox with brand color */
}

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

.page-login__forgot-password:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

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

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

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

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-login__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

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

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

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

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.page-login__benefit-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-login__benefit-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

/* Security Section */
.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-login__security-text-block {
    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: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-login__security-list-item {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.page-login__security-list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #26A9E0;
    font-size: 1.2em;
}

.page-login__security-feature-title {
    font-size: 1.6em;
    margin-bottom: 8px;
    color: #26A9E0;
}

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

.page-login__security-feature-description a {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}


/* Video Section */
.page-login__video-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for the video */
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicate clickable video */
}

.page-login__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* Make the link clickable over the video */
}


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

.page-login__game-card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

.page-login__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

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

.page-login__game-button:hover {
    background-color: #1e87bb;
}

/* FAQ Section */
.page-login__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background 0.3s ease;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-login__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Reset h3 font size */
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it expands */
    padding: 15px 25px 20px 25px;
}

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

.page-login__faq-answer a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

/* Call to Action Section */
.page-login__cta-section {
    text-align: center;
    padding: 80px 0;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    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; /* Important for mobile responsiveness */
}

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

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

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87bb;
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__hero-section {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        height: auto;
        min-height: 550px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
        padding-bottom: 40px;
    }

    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-login__form-wrapper {
        padding: 25px;
        max-width: 100%;
    }

    .page-login__form-title {
        font-size: 1.8em;
    }

    .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: 12px 20px; /* Adjust padding for smaller buttons */
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }

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

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

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

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

    .page-login__security-image-wrapper {
        order: -1; /* Image above text on mobile */
    }

    .page-login__security-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }

    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to video container */
        margin-top: 30px;
    }

    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__game-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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

    /* Ensure all content sections and containers are responsive */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__video-section,
    .page-login__games-section,
    .page-login__faq-section,
    .page-login__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific image handling for content sections */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__security-list-item::before {
        font-size: 1em;
        top: 3px;
    }
    .page-login__security-feature-title {
        font-size: 1.4em;
    }
}