/* style/login.css */

/* --- General Page Styles --- */
.page-login {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page, assuming dark body bg */
    background-color: var(--dark-bg-1); /* Inherited from shared */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    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 40px auto;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background: url('[GALLERY:hero_bg:1920x1080:login_background,online_gambling,abstract_lights,secure_platform,blue_white]') no-repeat center center/cover;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.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 */
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    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.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* --- Login Form --- */
.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    margin: 40px auto 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-title {
    font-size: 2em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

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

.page-login__form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #EA7C07; /* Custom color for Login button */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

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

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

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

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

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for this section */
    color: #333333;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
    color: #333333;
}

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

.page-login__benefit-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-login__benefit-icon {
    width: 100%; /* Ensure responsiveness */
    max-width: 600px; /* Max size of the original image */
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 8px; /* Added for visual appeal */
    display: block;
}

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

.page-login__card-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

/* --- Security Info Section --- */
.page-login__security-info {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-login__security-info .page-login__section-title,
.page-login__security-info .page-login__section-description {
    color: #ffffff;
}

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

.page-login__security-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__security-card .page-login__card-title {
    color: #26A9E0;
}

.page-login__security-card .page-login__card-description {
    color: #e0e0e0;
}

/* Specific styling for buttons within dark sections */
.page-login__security-info .page-login__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

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

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #333333;
}

.page-login__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

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

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

.page-login__faq-section .page-login__section-title {
    color: #333333;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-login__faq-item {
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none; /* Prevent text selection on click */
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−"; /* Changes to minus when open */
}

.page-login__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__intro-text {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        min-height: 600px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

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

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__login-form-wrapper {
        padding: 30px;
        margin-top: 20px;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .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 15px;
        font-size: 1em;
    }

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

    .page-login__benefits-section,
    .page-login__security-info,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 60px 0;
    }

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

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

    .page-login__benefits-grid,
    .page-login__security-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Ensure images are responsive and don't overflow */
    .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: hidden !important; /* Ensure no overflow */
    }
}