/* style/login.css */

/* Base styles for the login page */
.page-login {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background from shared.css */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-image: url('[GALLERY:hero_login:1920x1080:tt88 bet login,online casino,sports betting,secure access,dynamic background]');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Ensure hero section is tall enough */
}

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

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

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

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

/* Login Form Wrapper */
.page-login__login-form-wrapper {
    background: rgba(1, 116, 57, 0.9); /* Brand primary color with transparency */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 40px auto 0;
    border: 1px solid #017439;
}

.page-login__login-form {
    text-align: left;
}

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

.page-login__form-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
    color: #f0f0f0;
    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: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
}

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

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

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

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #017439; /* Highlight checkbox with primary color */
}

.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: #ffffff;
    text-decoration: underline;
}

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

.page-login__btn-login:hover {
    background-color: #a00606; /* Slightly darker red on hover */
    color: #ffffff;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    color: #ffffff;
}

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

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

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

.page-login__section-title {
    font-size: 2.8em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    color: #FFFF00; /* Yellow for section titles on dark backgrounds */
}

.page-login__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Light text for dark sections */
}

.page-login__dark-section {
    background-color: #0d0d0d; /* Slightly lighter dark than body for contrast */
    padding: 60px 0;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #ffffff;
    padding: 60px 0;
    color: #333333; /* Dark text for light sections */
}

.page-login__light-bg .page-login__section-title {
    color: #017439; /* Primary color for titles on light backgrounds */
}

.page-login__light-bg .page-login__text-block,
.page-login__light-bg .page-login__feature-description,
.page-login__light-bg .page-login__inline-link {
    color: #333333;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
}

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.08); /* Subtle light background on dark section */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(1, 116, 57, 0.3);
}

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

.page-login__benefit-icon {
    width: 200px; /* Min size for images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Security Info Section */
.page-login__security-info {
    padding: 80px 0;
}

.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-login__feature-item {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-login__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439; /* Primary color for feature titles */
    font-weight: bold;
}

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

.page-login__inline-link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-login__inline-link:hover {
    color: #005f2e;
}

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

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

.page-login__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Subtle light background on dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    background-color: rgba(1, 116, 57, 0.7); /* Primary color with transparency */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-login__faq-item summary:hover {
    background-color: rgba(1, 116, 57, 0.9);
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−";
}

.page-login__faq-answer {
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
    font-size: 1em;
    line-height: 1.8;
}

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't exceed container */
    width: auto; /* Default width */
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom Register button color */
    color: #FFFF00; /* Custom Register button text color */
    border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Yellow for secondary button text */
    border: 2px solid #FFFF00;
}

.page-login__btn-secondary:hover {
    background-color: #FFFF00;
    color: #017439; /* Dark text on yellow hover */
    border-color: #FFFF00;
}

.page-login__contact-prompt {
    margin-top: 40px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2.2em;
    }
    .page-login__intro-description,
    .page-login__text-block {
        font-size: 1em;
    }
    .page-login__benefit-icon {
      width: 180px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__intro-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-login__login-form-wrapper {
        padding: 30px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .page-login__form-title {
        font-size: 1.8em;
    }
    .page-login__form-subtitle {
        font-size: 0.9em;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password {
        margin-top: 5px;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-login__text-block {
        font-size: 0.9em;
    }

    .page-login__grid-container,
    .page-login__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-card,
    .page-login__feature-item {
        padding: 20px;
    }

    .page-login__benefit-icon {
      width: 150px;
    }

    .page-login__card-title,
    .page-login__feature-title {
        font-size: 1.3em;
    }

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

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

    /* Mobile specific image, video, button adaptations */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-login__cta-button,
    .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; /* Add padding to prevent text from touching edges */
        padding-right: 15px;
    }
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}