/* style/login.css */

/* Base Styles for Login Page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* 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); /* Apply header offset here */
    box-sizing: border-box;
}

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

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

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    color: #ffffff;
}

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

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Login Form */
.page-login__form {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.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-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-login__btn-login,
.page-login__btn-register {
    display: block;
    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, border-color 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 150px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-login__btn-login:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

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

.page-login__btn-register:hover {
    background-color: #1f8ec0;
    border-color: #1f8ec0;
}

.page-login__forgot-password {
    margin-top: 20px;
    font-size: 0.9em;
    color: #f0f0f0;
}

.page-login__forgot-password a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* General Section Styles */
.page-login__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-login__dark-bg {
    background-color: #1a1a2e; /* Dark background from shared.css */
    color: #ffffff;
    padding: 60px 0;
}

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
    color: inherit; /* Inherit color from parent section */
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    color: inherit; /* Inherit color from parent section */
}

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

.page-login__feature-item {
    text-align: center;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-login__feature-item .page-login__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-login__feature-text {
    font-size: 1em;
    color: #555555;
}

/* How to Login Section */
.page-login__how-to-login {
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-login__step-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-number {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 25px auto;
}

.page-login__step-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.page-login__support-link {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__support-link .page-login__link-text {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Games Section */
.page-login__games-section {
    background-color: #ffffff;
    color: #333333;
}

.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: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-login__game-title {
    font-size: 1.4em;
    margin: 15px 0 10px;
    padding: 0 15px;
}

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

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

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

.page-login__cta-explore {
    text-align: center;
    margin-top: 50px;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Promotions Section */
.page-login__promotions-section {
    background-color: #1a1a2e;
    color: #ffffff;
    text-align: center;
}

.page-login__promotions-content {
    max-width: 900px;
}

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

.page-login__cta-promotions {
    margin-top: 40px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-primary:hover {
    background-color: #1f8ec0;
    border-color: #1f8ec0;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-login__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #e5e5e5;
}

.page-login__faq-title {
    margin: 0;
    font-size: 1.1em;
    flex-grow: 1;
    text-align: left;
    color: #333333;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or - if desired, but + to - is common) */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

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

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

/* Final CTA Section */
.page-login__cta-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.page-login__cta-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: 2;
}

.page-login__cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: #ffffff;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

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

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        min-height: 550px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-login__form {
        padding: 20px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-login__btn-login,
    .page-login__btn-register {
        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;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__features-grid,
    .page-login__steps-grid,
    .page-login__games-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-login__feature-item,
    .page-login__step-item,
    .page-login__game-card {
        padding: 20px;
    }

    .page-login__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-login__promotion-image {
        margin-top: 20px;
    }

    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-title {
        font-size: 1em;
    }
    .page-login__faq-toggle {
        font-size: 1.5em;
    }
    .page-login__faq-answer {
        padding: 10px 20px;
    }

    .page-login__cta-section {
        min-height: 350px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
    }

    /* Mobile image/video/container overflow fix */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        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; /* Ensure no horizontal scroll */
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__hero-section {
        min-height: 450px;
    }
}