/* style/login.css */

/* --- Base Styles & Variables (within page-login scope) --- */
.page-login {
    /* Body background is #0a0a0a (dark), so general text should be light */
    color: #ffffff; /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content area will be transparent to show body background */
}

.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;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.page-login__submit-button,
.page-login__btn-secondary,
.page-login__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__submit-button {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: 2px solid #C30808;
    width: 100%;
    font-size: 1.2em;
    margin-top: 20px;
}

.page-login__submit-button:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #017439;
    font-size: 1em;
}

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

.page-login__btn-link {
    background-color: transparent;
    color: #FFFF00; /* Use yellow for links on dark background */
    border: none;
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-login__btn-link:hover {
    color: #ffcc00; /* Lighter yellow on hover */
}

/* Image styles */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-image: url('[GALLERY:hero:1920x1080:880 casio,login hero,online casino,sports betting,mobile gaming]');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.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__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Login Form */
.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white for dark background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    margin-top: 30px;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

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

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #ffffff;
}

.page-login__forgot-password {
    color: #FFFF00; /* Yellow link */
    text-decoration: none;
}

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

.page-login__no-account {
    text-align: center;
    margin-top: 25px;
    color: #ffffff;
    font-size: 1em;
}

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

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

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.08); /* Lighter card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
    width: 100%; /* Make sure images fill card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 6px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for titles */
    margin-bottom: 15px;
}

.page-login__benefit-text {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Security Section --- */
.page-login__security-section {
    padding: 80px 0;
    background-color: transparent; /* Show body background */
}

.page-login__security-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-login__security-content {
    flex: 1;
}

.page-login__security-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-login__security-item {
    background: rgba(1, 116, 57, 0.2); /* Greenish background for list items */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1.05em;
}

/* --- Troubleshooting Section --- */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-login__troubleshooting-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-login__troubleshooting-title {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for titles */
    margin-bottom: 15px;
}

.page-login__troubleshooting-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- FAQ Section --- */
.page-login__faq-section {
    padding: 80px 0;
    background-color: transparent; /* Show body background */
}

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(1, 116, 57, 0.3); /* Greenish background for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question:hover {
    background: rgba(1, 116, 57, 0.5);
}

.page-login__faq-title {
    font-size: 1.25em;
    color: #ffffff;
    margin: 0;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for toggle icon */
    font-weight: bold;
    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;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05em;
}

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

.page-login__faq-answer p {
    margin-bottom: 15px;
}

/* Dark background sections */
.page-login__dark-section {
    background-color: #0d0d0d; /* Darker background for specific sections */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__description {
        font-size: 1.1em;
    }
    .page-login__security-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__security-image-wrapper {
        order: -1; /* Image above content on smaller screens */
    }
}

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

    /* Fixed header spacing for mobile */
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
    }
    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__container,
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__faq-section,
    .page-login__form-wrapper,
    .page-login__benefit-card,
    .page-login__troubleshooting-card,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding adjustments for sections that already have padding */
    .page-login__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__troubleshooting-section,
    .page-login__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Mobile button responsiveness */
    .page-login__submit-button,
    .page-login__btn-secondary,
    .page-login__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        /* Re-add some padding for button text */
        padding: 12px 15px !important;
    }

    /* Ensure button groups wrap */
    .page-login__cta-buttons { /* Assuming a container for multiple buttons */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__form-title {
        font-size: 1.5em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-title {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
}