.page-login {
    font-family: Arial, sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color for dark body background */
    background-color: var(--background, #08160F); /* Ensure consistency with body background */
}

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

.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background, #08160F);
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    color: var(--text-main, #F2FFF6);
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-login__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-login__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive H1 font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-login__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-login__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border, #2E7A4E);
}

.page-login__btn-secondary:hover {
    background: var(--border, #2E7A4E);
    color: #ffffff;
}

.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
}

.page-login__section-description {
    font-size: 1.05em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary, #A7D9B8);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: var(--card-bg, #11271B); /* Card BG */
    color: var(--text-main, #F2FFF6);
    text-align: center;
}

.page-login__login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-main, #F2FFF6);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--text-secondary, #A7D9B8);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    margin-top: 25px;
}

.page-login__login-button {
    flex-grow: 1;
    text-align: center;
}

.page-login__forgot-password,
.page-login__register-link {
    color: var(--gold, #F2C14E); /* Gold for links */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: var(--glow, #57E38D);
}

.page-login__register-prompt {
    margin-top: 30px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C); /* Deep Green */
    color: var(--text-main, #F2FFF6);
}

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

.page-login__benefit-card {
    background-color: var(--card-bg, #11271B); /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
    width: 200px; /* Default display size, will be overridden by responsive CSS */
    height: 200px;
    min-width: 200px; /* Enforce minimum display size for all images in content area */
    min-height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glow, #57E38D);
    display: block;
}

.page-login__benefit-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main, #F2FFF6);
}

.page-login__benefit-description {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg, #11271B); /* Card BG */
    color: var(--text-main, #F2FFF6);
}

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

.page-login__faq-item {
    background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--divider, #1E3A2A);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.6;
}

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

/* CTA Download Section */
.page-login__cta-download {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C); /* Deep Green */
    color: var(--text-main, #F2FFF6);
    text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-section {
        padding-bottom: 40px;
    }
    .page-login__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-login__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.2em);
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 30px;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: clamp(1.5em, 4.5vw, 2em);
    }
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__faq-section,
    .page-login__cta-download {
        padding: 40px 0;
    }
    .page-login__login-form {
        padding: 20px;
    }
    .page-login__form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        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 {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__benefits-grid,
    .page-login__benefit-card,
    .page-login__cta-buttons,
    .page-login__login-form,
    .page-login__faq-list,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-login__benefit-icon {
        min-width: 150px !important; /* Adjusted minimum display size for mobile if needed, but still >= 200px generated */
        min-height: 150px !important;
        width: 150px !important;
        height: 150px !important;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
}