/* style/login.css */

/* Base styles for the page-login scope */
.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 is handled by shared.css */
}

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

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

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

.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__form-container {
    position: relative;
    z-index: 1;
    background-color: #ffffff; /* White background for the form */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    text-align: left;
    color: #333333; /* Dark text for light form background */
}

.page-login__main-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* H1 on hero section, outside form container */
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    padding-bottom: 20px;
}

.page-login__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #ffffff; /* Text on hero section, outside form container */
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

.page-login__input-group {
    display: flex;
    flex-direction: column;
}

.page-login__label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333; /* Dark text for form labels */
}

.page-login__input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    background-color: #f9f9f9;
}

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

.page-login__checkbox {
    margin-right: 8px;
}

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

.page-login__forgot-password {
    color: #017439; /* Brand color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #005f2e; /* Darker shade of brand color */
}

.page-login__btn-submit {
    background-color: #C30808; /* Login button color */
    color: #ffffff; /* White text for contrast */
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-login__btn-submit:hover {
    background-color: #a00606; /* Darker shade */
}

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    color: #333333; /* Dark text for form */
}

.page-login__register-link {
    color: #017439; /* Brand color */
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styles */
.page-login__section {
    padding: 60px 0;
    text-align: center;
}

.page-login__title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark body background */
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Lighter text for dark body background */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Login Section */
.page-login__why-login-section {
    background-color: #1a1a2e; /* Same as body for seamless look */
}

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

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-login__feature-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__feature-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
}

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

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
    background-color: #017439; /* Brand primary color for this section */
    color: #ffffff;
}

.page-login__responsible-gaming-section .page-login__title,
.page-login__responsible-gaming-section .page-login__description {
    color: #ffffff;
}

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

.page-login__info-item {
    background-color: rgba(0, 0, 0, 0.2); /* Darker overlay on brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
}

.page-login__info-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffff00; /* Custom color for titles, passes contrast with #017439 */
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 300px; /* Limit button width on desktop */
    width: 100%; /* For mobile responsiveness */
}

.page-login__btn-primary {
    background-color: #C30808; /* Login/Register button color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #C30808;
}

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

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

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

/* App Download Section */
.page-login__app-download-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-login__app-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: left;
}

.page-login__app-content {
    flex: 1;
}

.page-login__app-download-section .page-login__title {
    color: #ffffff;
}

.page-login__app-download-section .page-login__description {
    color: #f0f0f0;
}

.page-login__app-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-login__app-benefits li {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23017439'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'%3E%3C/path%3E%3C/svg%3E"); /* Inline SVG for checkmark */
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-login__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.page-login__app-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #ffffff; /* Light background for FAQ section */
    color: #333333; /* Dark text for light background */
    text-align: left;
}

.page-login__faq-section .page-login__title {
    color: #333333; /* Dark title for light background */
    text-align: center;
}

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

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

.page-login__faq-item summary {
    list-style: none;
}
.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    background-color: #f0f0f0;
    user-select: none;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__title {
        font-size: 1.8em;
    }
    .page-login__hero-section {
        min-height: 600px;
    }
    .page-login__app-container {
        flex-direction: column;
        text-align: center;
    }
    .page-login__app-image-wrapper {
        margin-top: 40px;
    }
    .page-login__app-benefits {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 500px;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Fixed header spacing for mobile */
    }
    .page-login__main-title {
        font-size: 1.8em;
        padding-bottom: 10px;
    }
    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-login__form-container {
        padding: 30px;
    }
    .page-login__title {
        font-size: 1.5em;
    }
    .page-login__description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__section {
        padding: 40px 0;
    }
    .page-login__features-grid,
    .page-login__info-grid {
        grid-template-columns: 1fr;
    }
    .page-login__feature-item,
    .page-login__info-item {
        padding: 20px;
    }
    .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;
    }
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Mobile image/video responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__app-container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Color Contrast Safeguards */
/* Body background is dark, so default text is light */
.page-login {
    color: #ffffff; /* Default text for dark body background */
}

.page-login__form-container {
    background: #ffffff; /* Light background for form */
    color: #333333; /* Dark text for light form background */
}

.page-login__label,
.page-login__input,
.page-login__checkbox-label,
.page-login__register-text {
    color: #333333; /* Dark text for form elements */
}

.page-login__responsible-gaming-section {
    background: #017439; /* Brand color */
    color: #ffffff; /* White text for brand color background */
}

.page-login__info-title {
    color: #ffff00; /* Custom color for titles, passes contrast with #017439 */
}

.page-login__btn-primary {
    background: #C30808; /* Custom login/register button background */
    color: #ffffff; /* White text for contrast */
}

.page-login__btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.page-login__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-login__faq-section {
    background-color: #ffffff; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}
.page-login__faq-section .page-login__title,
.page-login__faq-question {
    color: #333333; /* Dark text for FAQ titles/questions */
}
.page-login__faq-answer {
    color: #555555; /* Slightly lighter dark text for answers */
}

/* Ensure no filter properties are used on images */
.page-login img {
    filter: none;
}