/* style/login.css */

/* Base styles for the login page */
.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 */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('[GALLERY:hero:1920x1080:gadanh_79,login_page,hero_background,secure_betting]');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5); /* Darken background for text readability */
    z-index: -1;
}


.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Further darken overlay */
    z-index: 0;
}

.page-login__hero-section > .page-login__container {
    position: relative;
    z-index: 1;
}

.page-login__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Login title color */
    font-weight: bold;
    line-height: 1.2;
}

.page-login__sub-heading {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-login__form-wrapper {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #017439;
}

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

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    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 {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

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

.page-login__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-login__btn-register {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #017439; /* Register button color */
    color: #ffffff;
    border: 1px solid #017439;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-register:hover {
    background-color: #005a2d;
    border-color: #005a2d;
    transform: translateY(-2px);
}

.page-login__forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #FFFF00; /* Link color */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00; /* Title color */
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__dark-section {
    background-color: #1a1a2e; /* Use body background for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-login__guide-section {
    background-color: #0d0d1a; /* Slightly lighter dark background */
    color: #ffffff;
    padding: 80px 0;
}

/* Features Section */
.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(1, 116, 57, 0.5); /* Brand green border */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(1, 116, 57, 0.2);
}

.page-login__feature-icon {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

/* Guide Section */
.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__step-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-login__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-login__step-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-login__troubleshoot-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-login__troubleshoot-text a {
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__troubleshoot-text a:hover {
    color: #017439;
    text-decoration: underline;
}

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    text-align: center;
    color: #ffffff;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #017439;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.page-login__video-cta {
    margin-top: 30px;
}

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

.page-login__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(1, 116, 57, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00;
    background-color: rgba(1, 116, 57, 0.3);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit within question area */
}

.page-login__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
    content: '−'; /* Change to minus sign */
}

.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; /* Sufficiently large to show content */
    padding: 20px;
}

.page-login__faq-answer p {
    margin: 0;
    padding-top: 10px;
    font-size: 0.95em;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 80px 0;
    }
    .page-login__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__sub-heading {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__form-wrapper {
        padding: 30px;
        max-width: 90%;
    }
    .page-login__btn-login,
    .page-login__btn-register {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-login__features-grid,
    .page-login__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-login__dark-section,
    .page-login__guide-section,
    .page-login__video-section,
    .page-login__faq-section {
        padding: 60px 0;
    }

    .page-login__feature-icon {
        min-width: unset;
        min-height: unset;
        width: 100px;
        height: 100px;
    }

    .page-login__video-wrapper {
        margin: 30px auto 20px auto;
        border-radius: 5px;
    }

    .page-login__faq-list {
        margin-top: 30px;
    }
    .page-login__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-login__faq-question h3 {
        font-size: 0.95em;
    }
    .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;
    }
    .page-login__faq-answer p {
        font-size: 0.9em;
    }

    /* Mobile image, video, button responsive requirements */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-login__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section is below header on mobile */
    }

    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"],
    .page-login__btn-login,
    .page-login__btn-register {
        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,
    .page-login__button-group,
    .page-login__btn-container,
    .page-login__form-actions {
        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__form-actions {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}