/* style/login.css */

/* Custom Colors */
:root {
    --b99-primary: #11A84E;
    --b99-secondary: #22C768;
    --b99-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --b99-card-bg: #11271B;
    --b99-background: #08160F;
    --b99-text-main: #F2FFF6;
    --b99-text-secondary: #A7D9B8;
    --b99-border: #2E7A4E;
    --b99-glow: #57E38D;
    --b99-gold: #F2C14E;
    --b99-divider: #1E3A2A;
    --b99-deep-green: #0A4B2C;
    /* Body background is from shared.css: var(--background). Assuming it's dark based on the custom colors. */
    --text-on-dark: var(--b99-text-main); /* #F2FFF6 */
    --text-on-light: #333333; /* Standard dark text for light backgrounds */
    --background-on-light: #ffffff; /* Standard light background for light sections */
}

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the entire page, assuming body is dark */
    background-color: var(--b99-background); /* Override for page-login specific background if needed, but body should handle it */
}

/* Sections */
.page-login__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-login__light-bg {
    background-color: var(--background-on-light); /* White background for contrast */
    color: var(--text-on-light);
}

.page-login__dark-section {
    background-color: var(--b99-card-bg); /* Use Card BG for dark sections */
    color: var(--b99-text-main);
}

/* Containers for content width */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, body handles header offset */
    overflow: hidden;
    min-height: 500px;
}

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

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

.page-login__hero-content {
    position: relative; /* Ensure content is above other elements */
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--b99-gold); /* Using gold for main title */
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-login__hero-description {
    font-size: 1.1em;
    color: var(--b99-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__cta-buttons--center {
    margin-top: 40px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
    background: var(--b99-btn-gradient);
    color: var(--b99-text-main);
    border: none;
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    opacity: 0.9;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--b99-primary);
    border: 2px solid var(--b99-primary);
}

.page-login__btn-secondary:hover {
    background-color: var(--b99-primary);
    color: var(--b99-text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Section Titles */
.page-login__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: var(--b99-gold); /* Gold for section titles */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--b99-primary);
    border-radius: 2px;
}

.page-login__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section for contrast */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__feature-item {
    background-color: var(--background-on-light); /* Light background for features in light section */
    border: 1px solid var(--b99-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-light);
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-login__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-login__feature-title {
    font-size: 1.4em;
    color: var(--b99-primary);
    margin-bottom: 10px;
}

.page-login__feature-description {
    font-size: 0.95em;
    color: var(--text-on-light);
}

/* Step List (Login Guide) */
.page-login__step-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 800px;
}

.page-login__step-item {
    background-color: var(--b99-card-bg); /* Dark background for steps in dark section */
    border-left: 5px solid var(--b99-primary);
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    color: var(--b99-text-main);
}

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

.page-login__step-description {
    font-size: 1em;
    color: var(--b99-text-secondary);
}

/* FAQ List */
.page-login__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-login__faq-item {
    background-color: var(--background-on-light); /* Light background for FAQ in light section */
    border: 1px solid var(--b99-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-light);
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--b99-primary);
    background-color: #f9f9f9; /* Slightly off-white for summary */
    border-bottom: 1px solid var(--b99-border);
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--b99-primary);
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-login__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: var(--text-on-light);
    border-top: 1px solid var(--b99-border);
}

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


/* Security Tips */
.page-login__security-tips {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-login__security-item {
    background-color: var(--b99-card-bg); /* Dark background for security tips in dark section */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--b99-divider);
    color: var(--b99-text-main);
}

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

.page-login__security-description {
    font-size: 0.95em;
    color: var(--b99-text-secondary);
}

/* Benefits List */
.page-login__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-login__benefits-item {
    background-color: var(--background-on-light); /* Light background for benefits in light section */
    border: 1px solid var(--b99-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--text-on-light);
}

.page-login__benefits-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-login__benefits-title {
    font-size: 1.4em;
    color: var(--b99-primary);
    margin-bottom: 10px;
}

.page-login__benefits-description {
    font-size: 0.95em;
    color: var(--text-on-light);
}

/* General text elements */
.page-login p,
.page-login li {
    color: inherit; /* Ensure text color inherits from its parent section for contrast */
}

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

@media (max-width: 768px) {
    .page-login__section {
        padding: 40px 15px;
    }

    .page-login__hero-section {
        padding: 10px 15px 30px;
    }

    .page-login__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-login__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-bottom: 25px;
    }

    .page-login__text-block {
        font-size: 0.95em;
    }

    .page-login__features-grid,
    .page-login__security-tips,
    .page-login__benefits-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-login__feature-item,
    .page-login__step-item,
    .page-login__security-item,
    .page-login__benefits-item {
        padding: 20px;
    }

    .page-login__feature-title,
    .page-login__step-title,
    .page-login__security-title,
    .page-login__benefits-title {
        font-size: 1.2em;
    }

    .page-login__feature-description,
    .page-login__step-description,
    .page-login__security-description,
    .page-login__benefits-description {
        font-size: 0.9em;
    }

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

    .page-login__faq-answer {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-image-wrapper,
    .page-login__features-grid,
    .page-login__feature-item,
    .page-login__step-list,
    .page-login__step-item,
    .page-login__faq-list,
    .page-login__faq-item,
    .page-login__security-tips,
    .page-login__security-item,
    .page-login__benefits-list,
    .page-login__benefits-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-login__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset */
      padding-left: 15px;
      padding-right: 15px;
    }
}