/* style/login.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --button-login-color: #EA7C07;
    --border-color: #e0e0e0;
}

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    color: var(--text-color-dark); /* Default for light background */
    background-color: var(--background-light);
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--text-color-light);
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    box-sizing: border-box;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

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

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: var(--button-login-color);
    color: var(--text-color-light);
    border: 2px solid var(--button-login-color);
}

.page-login__btn-primary:hover {
    background-color: darken(var(--button-login-color), 10%);
    border-color: darken(var(--button-login-color), 10%);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-login__btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

/* General Content Section */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 40px;
}

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

/* Login Form Section */
.page-login__form-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-login__form-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.page-login__form-image {
    flex: 1;
    min-width: 200px;
}

.page-login__form-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-login__login-form {
    flex: 1;
    min-width: 300px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-login__checkbox {
    width: 16px;
    height: 16px;
}

.page-login__checkbox-label {
    color: var(--text-color-dark);
}

.page-login__forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-login__submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--button-login-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-btn:hover {
    background-color: darken(var(--button-login-color), 10%);
}

.page-login__register-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color-dark);
}

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

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

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-login__card-title a:hover {
    text-decoration: underline;
}

.page-login__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color-light);
}

/* Register CTA Section */
.page-login__register-cta {
    background-color: var(--background-light);
    padding: 60px 0;
    text-align: center;
}

.page-login__register-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-color-dark);
}

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

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__item-description {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color-light);
}

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

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

.page-login__faq-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color-dark);
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: var(--text-color-dark);
}

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

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__form-wrapper {
        flex-direction: column;
        padding: 30px;
    }
    .page-login__form-image, .page-login__login-form {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 450px;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefit-card,
    .page-login__security-item,
    .page-login__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__hero-description {
        font-size: 0.9em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__form-wrapper {
        padding: 20px;
    }
    .page-login__faq-question h3 {
        font-size: 1em;
    }
}