/* style/login.css */

/* Base Styles */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f9fa;
}

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

.page-login__section-heading {
    font-size: 2.5em;
    color: #0056B3;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    background-color: #0056B3; /* Main brand color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-image: url('[GALLERY:hero_main:1920x1080:kuvip,login_hero,online_betting,casino,sports_betting,mobile_gaming]');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-login__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__hero-section .page-login__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.page-login__hero-content {
    flex: 1;
    max-width: 600px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFD700; /* Auxiliary color for emphasis */
}

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

.page-login__login-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background-image: url('[GALLERY:login_form_bg:800x600:kuvip,login_form,secure_access,abstract_bg]');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.page-login__login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white overlay */
    z-index: 1;
}

.page-login__login-card > * {
    position: relative;
    z-index: 2;
}

.page-login__card-title {
    font-size: 2em;
    color: #0056B3;
    margin-bottom: 30px;
    font-weight: bold;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.page-login__login-button, .page-login__forgot-password, .page-login__register-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-primary {
    background-color: #0056B3;
    color: #ffffff;
    border: 2px solid #0056B3;
}

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

.page-login__btn-secondary {
    background-color: #FFD700;
    color: #0056B3;
    border: 2px solid #FFD700;
}

.page-login__btn-secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-login__forgot-password {
    color: #0056B3;
    font-size: 0.95em;
}

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

.page-login__register-prompt {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    color: #555555;
}

/* Why Choose Section */
.page-login__why-choose-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-login__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__feature-icon {
    width: 100%; /* Ensure images are responsive within cards */
    height: 200px; /* Fixed height for consistency, will be covered by object-fit */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: #0056B3;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

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

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

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #0056B3;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* CTA Bottom Section */
.page-login__cta-bottom-section {
    padding: 80px 0;
    background-color: #0056B3;
    color: #ffffff;
    text-align: center;
}

.page-login__cta-bottom-section .page-login__section-heading {
    color: #FFD700;
}

.page-login__cta-bottom-section .page-login__section-description {
    color: #f0f0f0;
}

.page-login__large-button {
    padding: 15px 40px;
    font-size: 1.2em;
    display: inline-block;
    margin-top: 20px;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-login__responsible-gaming-section .page-login__section-heading {
    color: #0056B3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-section .page-login__container {
        flex-direction: column;
        text-align: center;
    }

    .page-login__hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .page-login__login-card {
        max-width: 100%;
    }
}

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

    .page-login__intro-text {
        font-size: 1em;
    }

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

    .page-login__section-description {
        font-size: 1em;
    }

    .page-login__hero-section,
    .page-login__why-choose-section,
    .page-login__faq-section,
    .page-login__cta-bottom-section,
    .page-login__responsible-gaming-section {
        padding: 60px 0;
    }

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

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

    /* Mobile overflow prevention for images */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__feature-icon {
        height: auto; /* Allow auto height for mobile responsiveness */
        min-height: 200px; /* Ensure minimum size is maintained */
    }

    /* Mobile overflow prevention for buttons */
    .page-login__login-button,
    .page-login__register-button,
    .page-login__forgot-password,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        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__form-actions,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-login__container,
    .page-login__login-card,
    .page-login__feature-item,
    .page-login__faq-list,
    .page-login__cta-bottom-section,
    .page-login__responsible-gaming-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
    }
}

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

    .page-login__section-heading {
        font-size: 1.8em;
    }
    
    .page-login__login-card {
        padding: 25px 15px;
    }
}

/* Color Contrast Fixes (if needed, as a fallback) */
.page-login__dark-bg {
    color: #ffffff;
}

.page-login__light-bg {
    color: #333333;
}

.page-login__card {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-login__btn-primary {
    background: #0056B3;
    color: #ffffff;
}

.page-login__btn-secondary {
    background: #FFD700;
    color: #0056B3;
}