/* style/login.css */

/* Custom colors from requirements */
:root {
    --bk8-green-main: #11A84E;
    --bk8-green-secondary: #22C768;
    --bk8-card-bg: #11271B;
    --bk8-bg: #08160F;
    --bk8-text-main: #F2FFF6;
    --bk8-text-secondary: #A7D9B8;
    --bk8-border: #2E7A4E;
    --bk8-glow: #57E38D;
    --bk8-gold: #F2C14E;
    --bk8-divider: #1E3A2A;
    --bk8-deep-green: #0A4B2C;
    --bk8-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--bk8-text-main); /* Default text color for dark background */
    background-color: var(--bk8-bg); /* Page background from custom colors */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bk8-deep-green); /* A darker green for hero */
    overflow: hidden; /* Ensure no overflow from images */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and content */
    box-sizing: border-box;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-login__hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 size */
    color: var(--bk8-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-login__description {
    font-size: 1.2em;
    color: var(--bk8-text-secondary);
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background-color: var(--bk8-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--bk8-text-main);
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--bk8-border);
    border-radius: 5px;
    background-color: #0A2016; /* Slightly darker than card bg */
    color: var(--bk8-text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--bk8-text-secondary);
    opacity: 0.7;
}

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

.page-login__forgot-password {
    color: var(--bk8-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: var(--bk8-gold);
}

.page-login__remember-me {
    color: var(--bk8-text-secondary);
    display: flex;
    align-items: center;
}

.page-login__remember-me input {
    margin-right: 5px;
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: var(--bk8-button-gradient);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-login__register-text {
    margin-top: 20px;
    color: var(--bk8-text-secondary);
    font-size: 0.95em;
}

.page-login__register-link {
    color: var(--bk8-gold);
    text-decoration: none;
    font-weight: bold;
}

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

/* General Sections */
.page-login__section {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

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

.page-login__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--bk8-gold);
    margin-bottom: 40px;
    font-weight: bold;
}

.page-login__light-bg {
    background-color: #0A2016; /* Slightly lighter dark background */
    color: var(--bk8-text-main);
}

.page-login__dark-bg {
    background-color: var(--bk8-bg);
    color: var(--bk8-text-main);
}

/* Why Choose BK8 Section */
.page-login__why-bk8 .page-login__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__card {
    background-color: var(--bk8-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--bk8-border);
    color: var(--bk8-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-login__card-title {
    font-size: 1.5em;
    color: var(--bk8-gold);
    margin-bottom: 15px;
}

.page-login__card p {
    color: var(--bk8-text-secondary);
}

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

.page-login__step-item {
    background-color: var(--bk8-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--bk8-border);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--bk8-glow);
    margin-bottom: 15px;
}

.page-login__step-title {
    font-size: 1.3em;
    color: var(--bk8-text-main);
    margin-bottom: 10px;
}

.page-login__step-item p {
    color: var(--bk8-text-secondary);
}

.page-login__cta-text {
    margin-top: 50px;
    font-size: 1.1em;
    color: var(--bk8-text-main);
}

.page-login__link {
    color: var(--bk8-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-login__link:hover {
    text-decoration: underline;
}

/* Troubleshooting & FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-login__faq-item {
    background-color: var(--bk8-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--bk8-border);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--bk8-text-main);
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details summary */
}

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

.page-login__faq-item summary:hover {
    background-color: rgba(var(--bk8-green-main), 0.1);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    color: var(--bk8-glow);
    margin-left: 15px;
}

.page-login__faq-answer {
    padding: 0 20px 20px;
    color: var(--bk8-text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
}

.page-login__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-login__tip-card {
    background-color: var(--bk8-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--bk8-border);
    text-align: left;
}

.page-login__tip-title {
    font-size: 1.3em;
    color: var(--bk8-gold);
    margin-bottom: 10px;
}

.page-login__tip-card p {
    color: var(--bk8-text-secondary);
}

/* New User Guide Section */
.page-login__new-user-guide p {
    margin-bottom: 20px;
    color: var(--bk8-text-main);
    font-size: 1.1em;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--bk8-gold);
    border: 2px solid var(--bk8-gold);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: var(--bk8-gold);
    color: var(--bk8-bg);
    transform: translateY(-2px);
}

/* Mobile Access Section */
.page-login__mobile-access p {
    margin-bottom: 20px;
    color: var(--bk8-text-main);
    font-size: 1.1em;
}

.page-login__mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-login__mobile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* Final CTA Section */
.page-login__final-cta p {
    margin-bottom: 30px;
    color: var(--bk8-text-main);
    font-size: 1.1em;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-section {
        padding: 40px 15px;
    }
    .page-login__section {
        padding: 60px 15px;
    }
    .page-login__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-login__section-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-login__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 30px 15px;
    }
    .page-login__hero-image-wrapper {
        margin-bottom: 30px;
    }
    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        padding: 25px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-login__section {
        padding: 40px 15px;
    }
    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__section-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__card-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Enforce minimum size */
    }
    .page-login__mobile-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons responsiveness */
    .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;
        padding-right: 15px;
    }
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by button padding */
        padding-right: 0; /* Handled by button padding */
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Video responsiveness (if any, though not explicitly in HTML for now) */
    .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: 10px !important; /* Small top padding for video section */
    }

    /* Ensure content area images are not too small */
    .page-login__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}