/* style/login.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --login-button-bg: #C30808;
    --login-button-text: #FFFF00;
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --border-light: #e0e0e0;
    --background-light: #f9f9f9;
}

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Body background is white */
}

/* Fixed Header Spacing */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #004d26); /* Darker green gradient */
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-login__hero-image {
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__hero-content {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.page-login__main-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.2;
}

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

.page-login__form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
    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-dark);
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: var(--text-dark);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.page-login__btn-login, .page-login__btn-register {
    display: block;
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-login {
    background-color: var(--login-button-bg);
    color: var(--login-button-text);
    border: none;
}

.page-login__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-register {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
}

.page-login__btn-register:hover {
    background-color: #005f2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__forgot-password {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95em;
}

.page-login__link-forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__link-forgot-password:hover {
    text-decoration: underline;
    color: #005f2c;
}

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

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

.page-login__container--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-login__section-title {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-login__section-title--small {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-login__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

/* Importance Section */
.page-login__importance-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.page-login__grid-item {
    background: var(--background-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-login__grid-text {
    font-size: 1em;
    color: var(--text-dark);
}

.page-login__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-login__list-item {
    background: var(--background-light);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-login__list-item strong {
    color: var(--primary-color);
}

/* Guide Section */
.page-login__guide-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-login__guide-section .page-login__section-title {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-login__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
}

.page-login__text-block {
    flex: 2;
}

.page-login__image-right {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__sub-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--login-button-text); /* Using yellow for sub-titles on dark background */
}

.page-login__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-login__ordered-list .page-login__list-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__ordered-list .page-login__list-item strong {
    color: var(--login-button-text);
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-login__grid--benefits {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-login__benefit-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* FAQ Section */
.page-login__faq-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--secondary-color);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

.page-login__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question:active {
    background: #eeeeee;
}

.page-login__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-login__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
    color: var(--primary-color);
    transform: rotate(180deg);
}

/* Register CTA Section */
.page-login__register-cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 20px;
}

.page-login__register-cta-section .page-login__section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-login__register-cta-section .page-login__section-description {
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-login__btn-register-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--login-button-bg);
    color: var(--login-button-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.page-login__btn-register-cta:hover {
    background-color: #a00606;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-login__form-actions,
.page-login__button-group,
.page-login__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-login__main-title {
        font-size: 2em;
    }

    .page-login__description {
        font-size: 1em;
    }

    .page-login__form {
        padding: 20px;
    }

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

    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-register-cta,
    .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__form-actions,
    .page-login__button-group,
    .page-login__btn-container,
    .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;
    }

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__section-title {
        font-size: 1.8em;
    }

    .page-login__section-title--small {
        font-size: 1.5em;
    }

    .page-login__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__image-right {
        min-width: unset;
    }

    .page-login__sub-title {
        font-size: 1.4em;
    }

    .page-login__faq-question h3 {
        font-size: 1em;
    }

    .page-login__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }

    .page-login__btn-register-cta {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}