/* style/login.css */

/* --- General Page Styling --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark backgrounds */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-intro {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for intro text */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__text-block {
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.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: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

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

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit,
.page-login__btn-more-info,
.page-login__btn-contact {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary {
    background-color: #C30808; /* Login color */
    color: #ffffff; /* Ensuring contrast for button text */
    border: 2px solid #C30808;
}

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

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

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

.page-login__btn-submit {
    background-color: #C30808; /* Login color */
    color: #ffffff; /* Ensuring contrast for button text */
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.page-login__btn-submit:hover {
    background-color: #a00606;
}

.page-login__btn-more-info {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: 30px;
    padding: 12px 25px;
}

.page-login__btn-more-info:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-login__btn-contact {
    background-color: #017439;
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

.page-login__btn-contact:hover {
    background-color: #005a2e;
}

/* --- Login Form Section --- */
.page-login__form-section {
    background-color: #ffffff; /* Light background for form */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-login__form-title {
    font-size: 2em;
    color: #017439; /* Brand color for title */
    text-align: center;
    margin-bottom: 20px;
}

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

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.page-login__checkbox-label {
    color: #555555;
    cursor: pointer;
}

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__register-text {
    text-align: center;
    margin-top: 30px;
    color: #555555;
}

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

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

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

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

.page-login__benefit-card {
    background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-login__benefit-icon {
    width: 200px; /* Min size for images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-login__benefit-description {
    font-size: 1em;
    color: #f0f0f0;
    text-align: left; /* Adjust for readability */
}

/* --- About Platform Section --- */
.page-login__about-platform-section {
    background-color: #ffffff;
    padding: 80px 0;
    color: #333333;
}

/* --- Security and Responsible Gaming Section --- */
.page-login__security-responsible-gaming-section {
    background-color: #017439; /* Brand primary color */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-login__feature-card {
    background-color: rgba(0, 0, 0, 0.3); /* Dark transparent background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* --- Support Section --- */
.page-login__support-section {
    background-color: #f8f8f8; /* Light background */
    padding: 80px 0;
    color: #333333;
}

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

.page-login__channel-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-login__channel-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

.page-login__support-assurance {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #555555;
}

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

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible on dark background */
    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;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker on hover/active */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

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

.page-login__faq-toggle {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: bold;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

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

/* --- Responsive Design --- */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 3em;
    }

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

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

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

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    }

    .page-login__hero-title {
        font-size: 2.2em;
    }

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

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

    /* Images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-login__benefit-icon {
        width: 200px; /* Keep minimum size */
        height: auto;
    }

    /* Videos responsive */
    .page-login video,
    .page-login__video { /* Assuming a video might be added later */
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Video containers responsive */
    .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;
    }
    
    /* Buttons responsive */
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit,
    .page-login__btn-more-info,
    .page-login__btn-contact,
    .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 touching edges */
        padding-right: 15px;
    }

    .page-login__hero-cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
      flex-direction: column; /* Stack buttons vertically */
    }

    .page-login__login-form {
        padding: 25px;
    }

    .page-login__form-input {
        width: 100%;
    }

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

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

    .page-login__faq-question {
        padding: 15px;
    }

    .page-login__faq-title {
        font-size: 1.1em;
    }

    .page-login__faq-toggle {
        font-size: 1.5em;
    }

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px;
    }
}

/* Color Contrast Enforcement */
.page-login__dark-bg {
    color: #ffffff; /* Deep body background #121212 is dark */
}

.page-login__light-bg {
    color: #333333; /* For light backgrounds like white or f8f8f8 */
}

.page-login__login-form {
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

.page-login__login-form .page-login__form-label,
.page-login__login-form .page-login__checkbox-label,
.page-login__login-form .page-login__register-text {
    color: #333333;
}

.page-login__benefit-card {
    background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color on dark background */
    color: #ffffff;
}

.page-login__feature-card {
    background-color: rgba(0, 0, 0, 0.3); /* Transparent dark on brand color background */
    color: #ffffff;
}

.page-login__channel-card {
    background-color: #ffffff;
    color: #333333;
}