/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f5f5f5 */
    background-color: #f5f5f5; /* Inherited from shared.css body, but explicitly set for context */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Adjusted padding-top for header offset */
    background-image: url('[GALLERY:hero_login:1920x1080:hot51live,login_background,secure_betting,dynamic_gaming]');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__main-heading {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Login Form Wrapper */
.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

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

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

.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 #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

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

.page-login__btn-login:hover {
    background-color: #d16b06;
}

.page-login__form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    margin-top: 10px;
}

.page-login__forgot-password,
.page-login__register-link {
    color: #26A9E0; /* Primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: #1a7bb0;
    text-decoration: underline;
}

.page-login__register-text {
    color: #555555;
}

/* General Section Styles */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-login__section-heading {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for features */
    color: #333333;
}

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

.page-login__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-login__feature-icon {
    width: 200px; /* Display size, must be >= 200px */
    height: 200px; /* Display size, must be >= 200px */
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

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

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

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-heading {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bb0;
    border-color: #f0f0f0;
}

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

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

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

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

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

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.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-color: #ffffff;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-heading {
        font-size: 2.5em;
    }
    .page-login__section-heading {
        font-size: 2em;
    }
    .page-login__cta-heading {
        font-size: 2.2em;
    }
    .page-login__hero-section {
      padding-top: var(--header-offset, 120px);
    }
}

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

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

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

    .page-login__login-form-wrapper {
        padding: 30px;
        max-width: 90%;
    }

    .page-login__btn-login {
        font-size: 1em;
        padding: 12px 15px;
    }

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

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

    .page-login__features-section,
    .page-login__cta-section,
    .page-login__faq-section {
        padding: 60px 0;
    }

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

    .page-login__feature-item {
        padding: 25px;
    }
    
    .page-login__feature-icon {
        width: 200px !important;
        height: 200px !important;
    }

    .page-login__cta-heading {
        font-size: 1.8em;
    }
    .page-login__cta-description {
        font-size: 1em;
    }
    .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;
    }

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

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
}

/* Ensure image colors are not altered */
.page-login img {
    filter: none !important; /* Prohibit any CSS filter */
}