/* style/login.css */
/* Page specific styles for Login page */

/* Root variables for page-specific colors if needed, overriding shared */
.page-login {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFF00;
    background-color: var(--secondary-color); /* Body background is light */
    color: var(--text-color-dark);
}

/* HERO Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: var(--primary-color);
    color: var(--text-color-light);
    overflow: hidden;
}

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

.page-login__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    color: var(--text-color-light);
}

.page-login__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
    font-weight: 700;
}

.page-login__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    text-align: left;
}

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-light);
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color-light);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login-bg);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary:hover {
    background: #a30606; /* Slightly darker red for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__forgot-password {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

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

.page-login__register-prompt p {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.page-login__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-color-dark);
}

/* Guide Section */
.page-login__guide-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-login__guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.page-login__step-item {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

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

.page-login__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-login__guide-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-login__guide-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    color: var(--text-color-dark);
}

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

.page-login__benefit-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    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-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

/* Security Tips Section */
.page-login__security-tips-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-login__security-tips-section .page-login__section-title {
    color: var(--text-color-light);
}

.page-login__security-tips-section .page-login__section-description {
    color: rgba(255, 255, 255, 0.9);
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 50px auto;
    max-width: 900px;
}

.page-login__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-login__security-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__security-item-title {
    font-size: 1.4em;
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__security-item-text {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.page-login__security-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-login__security-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

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

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

.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;
    color: var(--text-color-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

.page-login__faq-item.active .page-login__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f5f5f5;
}

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

.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 {
    transform: rotate(45deg);
    color: var(--button-login-bg);
}

/* Final CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
}

.page-login__cta-section .page-login__section-title {
    color: var(--text-color-light);
}

.page-login__cta-section .page-login__section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.page-login__btn-register-bottom {
    background: var(--button-register-bg);
    color: var(--button-text-color);
    padding: 18px 50px;
    font-size: 1.2em;
    border-radius: 8px;
    max-width: 400px;
}

.page-login__btn-register-bottom:hover {
    background: #a30606;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-login__hero-content {
        text-align: center;
        max-width: 100%;
    }
    .page-login__main-heading {
        font-size: 2.8em;
    }
    .page-login__hero-image-wrapper {
        margin-top: 40px;
    }
    .page-login__login-form-wrapper {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-login__hero-description,
    .page-login__section-description,
    .page-login__benefit-text,
    .page-login__step-text,
    .page-login__security-item-text,
    .page-login__faq-answer p {
        font-size: 0.95em;
    }
    .page-login__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        margin-bottom: 30px;
    }
    .page-login__guide-section,
    .page-login__benefits-section,
    .page-login__security-tips-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 0;
    }
    .page-login__guide-steps {
        flex-direction: column;
        gap: 20px;
    }
    .page-login__step-item {
        padding: 25px;
    }
    .page-login__benefit-card {
        padding: 25px;
    }
    .page-login__benefit-title {
        font-size: 1.4em;
    }
    .page-login__security-item {
        padding: 20px 25px;
    }
    .page-login__security-item-title {
        font-size: 1.2em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-register-bottom {
        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__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-login__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-login__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-login__faq-answer {
        padding: 0 15px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px !important;
    }
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__container,
    .page-login__hero-container,
    .page-login__login-form-wrapper,
    .page-login__guide-steps,
    .page-login__benefits-grid,
    .page-login__security-list,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-login__main-heading {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-register-bottom {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__hero-content {
        padding: 0;
    }
}