/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__hero-section {
    position: relative;
    background: url('[GALLERY:hero:1920x1080:hi88,login_background,secure_platform,online_betting]') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for H1 in hero */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for form */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    margin: 40px auto 0;
    color: #333333; /* Dark text for light background */
    text-align: left;
}

.page-login__card-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #017439; /* Brand color for card title */
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login button font color */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    border: none;
}

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

.page-login__forgot-password {
    color: #017439; /* Brand color for link */
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
    color: #555555;
}

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

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

/* General Section Styles */
.page-login__features-section, .page-login__how-to-login, .page-login__security-info, .page-login__promotions-cta, .page-login__contact-cta {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for content sections */
    color: #333333; /* Dark text for light background */
}

.page-login__dark-bg {
    background-color: #1a1a2e; /* Matches body background */
    color: #ffffff;
}

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles */
}

.page-login__dark-bg .page-login__section-title {
    color: #ffffff;
}

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

.page-login__link-inline {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__dark-bg .page-login__link-inline {
    color: #FFFF00;
}

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

.page-login__feature-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
}

.page-login__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

.page-login__feature-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-login__step-item {
    background: #f0f8ff;
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    color: #333333;
}

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

.page-login__step-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-login__cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #333333;
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-login__trouble-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-login__trouble-card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for titles in dark sections */
}

.page-login__trouble-card-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Security Info Section */
.page-login__security-info {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__security-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    min-width: 64px; /* Ensure icons are not too small */
    min-height: 64px;
    max-width: 100px;
    max-height: 100px;
}

.page-login__security-sub-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439;
}

.page-login__security-text {
    font-size: 0.95em;
    line-height: 1.5;
}

.page-login__security-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #555555;
}

/* Promotions CTA Section */
.page-login__promotions-cta {
    padding: 60px 0;
    background-color: #f5f5f5;
    color: #333333;
}

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

.page-login__promo-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
}

.page-login__promo-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-login__promo-card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439;
}

.page-login__promo-card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.page-login__btn-full-width {
    width: auto; /* Adjust for responsiveness, will be 100% on mobile */
    min-width: 250px;
    padding: 15px 30px;
}

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

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFF00; /* Custom color for FAQ questions */
    list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

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

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

/* Contact CTA Section */
.page-login__contact-cta {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }

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

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

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }

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

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

    .page-login__login-card {
        padding: 30px 20px;
        margin: 30px auto 0;
    }

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

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .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__forgot-password, .page-login__register-prompt {
        text-align: center;
        width: 100%;
    }

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

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

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

    .page-login__feature-image, .page-login__promo-image, .page-login__security-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-login__features-section, .page-login__how-to-login, .page-login__troubleshooting-section, .page-login__security-info, .page-login__promotions-cta, .page-login__contact-cta {
        padding: 40px 0;
    }

    .page-login__security-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }

    .page-login__btn-full-width {
        min-width: unset;
        width: 100%;
    }

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

    .page-login__video-section, .page-login__video-container, .page-login__video-wrapper,
    .page-login__section, .page-login__card, .page-login__container {
        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;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }

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

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

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

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