/* style/login.css */

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
    background-image: url('[GALLERY:hero:1920x1080:sun-win,login_background,online_betting,green_theme,secure]'); /* Hero background image */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
}

.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__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

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

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

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #017439;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
}

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    color: #f0f0f0;
}

.page-login__remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #017439;
}

.page-login__forgot-password {
    color: #FFFF00; /* Yellow for forgotten password link */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px 20px;
    background: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom text color for login button */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.page-login__submit-button:hover {
    background: #a30606;
    transform: translateY(-2px);
}

.page-login__register-link {
    margin-top: 25px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__register-link a {
    color: #FFFF00; /* Yellow for register link */
    text-decoration: none;
    font-weight: bold;
}

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
    font-weight: bold;
}

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

.page-login__text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #555555;
}

.page-login__dark-section .page-login__text-block {
    color: #f0f0f0;
}

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #ffffff;
}

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

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px; /* Added border-radius for consistency */
}

.page-login__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlighted title in yellow */
}

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

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

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

.page-login__game-card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-login__game-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-login__game-title {
    font-size: 1.4em;
    padding: 15px 20px 0;
    color: #017439;
}

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

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

.page-login__game-description {
    padding: 0 20px 20px;
    color: #666666;
    font-size: 0.95em;
}

/* Call to Action Buttons (General) */
.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-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border included in width */
}

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

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

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

.page-login__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
}

/* Promotion Section */
.page-login__promo-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #ffffff;
}

.page-login__promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-login__promo-img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-login__promo-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__promo-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted title in yellow */
}

.page-login__promo-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

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

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

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

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

.page-login__faq-title {
    margin: 0;
    font-size: 1em; /* Adjusted to match parent font-size */
    color: #017439;
}

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

.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;
    color: #555555;
    background: #fdfdfd;
}

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

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

/* CTA Section (Bottom) */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #ffffff;
    text-align: center;
}

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

/* Image Specific Styles (to ensure no filters) */
.page-login img {
    /* No filter properties here */
    border-radius: 8px; /* Example of allowed style */
}

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

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

    .page-login__promo-content {
        flex-direction: column;
        text-align: center;
    }

    .page-login__promo-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
    }

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

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

    .page-login__login-card {
        padding: 25px;
        margin: 20px auto;
        max-width: 90%;
    }

    .page-login__form-input {
        width: calc(100% - 20px) !important; /* Ensure full width */
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__submit-button {
        font-size: 1.1em;
        padding: 12px 15px;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-login__text-block {
        font-size: 1em;
    }

    .page-login__features-grid,
    .page-login__games-grid {
        grid-template-columns: 1fr;
    }

    .page-login__feature-item,
    .page-login__game-card {
        margin: 0 10px;
    }

    .page-login__feature-icon {
        width: 60px;
        height: 60px;
    }

    .page-login__promo-img {
        width: 90%; /* Adjust image width for mobile */
    }

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

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

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

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 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;
    }

    /* All images within .page-login */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers of images/content */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__features-section,
    .page-login__games-section,
    .page-login__promo-section,
    .page-login__faq-section,
    .page-login__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content inside sections */
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-login__hero-section,
    .page-login__features-section,
    .page-login__games-section,
    .page-login__promo-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}