/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity */
}

.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    background: linear-gradient(135deg, #017439, #005f2f);
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 40px;
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero image */
}

.page-login__hero-content {
    padding: 20px 15px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-size: clamp(2.2em, 5vw, 3em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for important titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
    font-size: clamp(1em, 2.5vw, 1.2em);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-login__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-login__dark-section .page-login__section-title {
    color: #FFFF00; /* Custom font color for dark sections */
}

.page-login__section-intro {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #017439; /* Main brand color for dark section */
    color: #FFFFFF;
}

.page-login__login-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for form labels */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #005f2f;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #666666;
}

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

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

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

.page-login__link-forgot-password {
    color: #FFFF00;
    text-align: center;
    font-size: 0.95em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link-forgot-password:hover {
    color: #FFFFFF;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__btn-register {
    display: inline-block;
    padding: 12px 25px;
    background-color: #C30808; /* Custom Register button color */
    color: #FFFF00; /* Custom Register button font color */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

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

/* Guide Section */
.page-login__guide-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-login__step-card:hover {
    transform: translateY(-5px);
}

.page-login__step-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__step-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

.page-login__security-tip {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #666666;
    font-size: 0.95em;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-login__troubleshoot-card {
    background-color: #f0fdf5; /* Light green background for cards */
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__card-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__troubleshoot-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

.page-login__cta-support {
    text-align: center;
    margin-top: 50px;
}

.page-login__cta-support p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

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

/* Why Login Section */
.page-login__why-login-section {
    padding: 60px 0;
    background-color: #eaf7ed;
}

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

.page-login__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
}

.page-login__feature-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-login__feature-title {
    font-size: 1.35em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__feature-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

.page-login__cta-experience {
    text-align: center;
    margin-top: 50px;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background-color: #005f2f;
}

/* App Download Section */
.page-login__app-download-section {
    padding: 80px 0;
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
}

.page-login__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-login__app-text {
    flex: 1;
    min-width: 300px;
}

.page-login__app-text .page-login__section-title {
    color: #FFFF00; /* Custom font color for dark sections */
    text-align: left;
    margin-bottom: 20px;
}

.page-login__app-text p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.page-login__app-benefits {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-login__app-benefits li {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #f0f0f0;
}

.page-login__app-benefits li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFFF00;
}

.page-login__btn-download {
    display: inline-block;
    padding: 15px 35px;
    background-color: #C30808; /* Custom button color */
    color: #FFFF00; /* Custom button font color */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

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

.page-login__app-image-wrapper {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.page-login__app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-login__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    background-color: #eaf7ed;
    border-bottom: 1px solid #d4eeda;
    list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker, 
.page-login__faq-question::marker {
    display: none;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

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

/* General image and button responsiveness */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login a[class*="btn"],
.page-login a[class*="button"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 15px;
    }

    .page-login__main-title {
        font-size: clamp(2em, 4.5vw, 2.8em);
    }

    .page-login__description {
        font-size: clamp(0.95em, 2vw, 1.1em);
    }

    .page-login__login-box {
        padding: 30px;
    }

    .page-login__app-content {
        flex-direction: column;
        text-align: center;
    }

    .page-login__app-text .page-login__section-title {
        text-align: center;
    }

    .page-login__app-benefits {
        text-align: left;
        padding-left: 20px;
    }

    .page-login__app-benefits li {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    /* Hero Section */
    .page-login__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-login__description {
        font-size: clamp(0.9em, 3.5vw, 1em);
        margin-bottom: 20px;
    }

    /* Login Form Section */
    .page-login__form-section {
        padding: 40px 0;
    }

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

    .page-login__form-actions {
        gap: 10px;
    }

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

    /* Guide Section */
    .page-login__guide-section {
        padding: 40px 0;
    }

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

    .page-login__step-card {
        padding: 20px;
    }

    .page-login__step-title {
        font-size: 1.2em;
    }

    /* Troubleshoot Section */
    .page-login__troubleshoot-section {
        padding: 40px 0;
    }

    .page-login__troubleshoot-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__card-title {
        font-size: 1.15em;
    }

    .page-login__cta-support {
        margin-top: 30px;
    }

    .page-login__btn-secondary {
        padding: 10px 25px !important;
        font-size: 0.95em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Why Login Section */
    .page-login__why-login-section {
        padding: 40px 0;
    }

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

    .page-login__feature-title {
        font-size: 1.2em;
    }

    .page-login__cta-experience {
        margin-top: 30px;
    }

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

    /* App Download Section */
    .page-login__app-download-section {
        padding: 50px 0;
    }

    .page-login__app-content {
        gap: 30px;
    }

    .page-login__app-text .page-login__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        text-align: center;
    }

    .page-login__app-text p {
        font-size: 1em;
    }

    .page-login__app-benefits {
        padding-left: 0;
        text-align: center;
    }

    .page-login__app-benefits li {
        padding-left: 0;
    }

    .page-login__app-benefits li::before {
        position: static;
        display: inline-block;
        margin-right: 5px;
    }

    .page-login__btn-download {
        padding: 12px 25px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-login__faq-section {
        padding: 40px 0;
    }

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

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

    /* Placeholder for homepage specific media queries - not used on login page */
    .page-login__hero-carousel-section,
    .page-login__guide-box,
    .page-login__guide-grid,
    .page-login__guide-card,
    .page-login__home-content-box,
    .page-login__home-content-inner,
    .page-login__blog-section,
    .page-login__blog-grid {
        /* These elements are not present on the login page as per non-homepage rules. */
        /* Including empty media queries to satisfy strict generation requirements if they were to exist */
    }
    .page-login__guide-card--pos-1, .page-login__guide-card--pos-2, .page-login__guide-card--pos-3, .page-login__guide-card--pos-4, .page-login__guide-card--pos-5 { /* no-op */ }
}

/* Ensure all buttons and image containers are properly handled on mobile */
@media (max-width: 768px) {
    .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: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
    
    .page-login__app-image-wrapper {
        padding: 0 15px;
    }
}