/* style/login.css */

/* Base Styles for .page-login */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

/* Sections */
.page-login__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

/* Hero Section */
.page-login__hero-section {
    background: linear-gradient(135deg, #017439, #004d2c); /* Darker green gradient */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    position: relative;
    overflow: hidden;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFF00; /* Custom color for main title */
}

.page-login__description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-login__login-form-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-login__login-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: left;
    color: #333333;
    box-sizing: border-box;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
}

.page-login__form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-login__btn-login {
    background-color: #C30808; /* Custom login color */
    color: #FFFF00; /* Custom login font color */
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    flex-grow: 1;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__btn-register {
    background-color: #017439; /* Main brand color for register */
    color: #ffffff;
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    flex-grow: 1;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__forgot-password {
    display: block;
    margin-top: 20px;
    color: #017439;
    text-decoration: none;
    font-size: 0.95em;
    text-align: center;
}

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

.page-login__qr-login {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    text-align: center;
    color: #333333;
    box-sizing: border-box;
}

.page-login__qr-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #017439;
}

.page-login__qr-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border: 5px solid #017439;
    border-radius: 8px;
    width: 200px;
    height: 200px;
}

.page-login__qr-text {
    font-size: 0.95em;
    margin-bottom: 25px;
}

.page-login__btn-download {
    background-color: #017439;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-download:hover {
    background-color: #005f31;
    transform: translateY(-2px);
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

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

.page-login__benefit-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-10px);
}

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

.page-login__benefit-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-login__guide-section {
    background: linear-gradient(135deg, #004d2c, #017439);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

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

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
    background-color: #FFFF00;
    color: #017439;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    margin: -60px auto 20px;
    border: 3px solid #017439;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-login__cta-bottom {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 20px;
    background-color: #f0fdf5; /* Very light green */
}

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

.page-login__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #f5f5f5;
}

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

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* CTA Section */
.page-login__cta-section {
    background: #017439;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-login__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Global Button Styles (BEM classes) */
.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom login color */
    color: #FFFF00; /* Custom login font color */
}

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

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

/* Image and Video Responsive Styles */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__login-form-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-login__login-form,
    .page-login__qr-login {
        max-width: 100%;
        padding: 30px 20px;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-download {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__benefits-grid,
    .page-login__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-login__benefit-item,
    .page-login__step-item {
        padding: 25px;
    }
    .page-login__step-number {
        margin-top: -50px;
    }
    .page-login__cta-bottom,
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px 20px;
    }

    /* Mobile image responsive enforcement */
    .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-section,
    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__faq-section,
    .page-login__cta-section,
    .page-login__login-form-wrapper,
    .page-login__login-form,
    .page-login__qr-login,
    .page-login__benefits-grid,
    .page-login__benefit-item,
    .page-login__guide-steps,
    .page-login__step-item,
    .page-login__faq-list,
    .page-login__faq-item,
    .page-login__cta-bottom,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
}