/* style/login.css */
/* 
  Màu sắc chính: #017439
  Màu sắc phụ: #FFFFFF
  Màu nút Đăng ký/Đăng nhập: #C30808
  Màu chữ nút Đăng ký/Đăng nhập: #FFFF00
  Màu nền: #FFFFFF
*/

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #ffffff; /* Explicitly set for content area */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px); /* Fallback for header spacing */
}

.page-login__hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

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

.page-login__hero-content {
    text-align: center;
    color: #ffffff;
    z-index: 1;
    position: relative;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.page-login__card-title {
    color: #017439;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.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 #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__btn-login {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

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

.page-login__links {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-login__forgot-password-link,
.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
    color: #005f2c;
    text-decoration: underline;
}

/* General Section Styles */
.page-login__section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

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

/* Why Choose Section */
.page-login__why-choose {
    background-color: #f9f9f9;
}

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

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

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Ensure images are not too small */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-login__feature-text {
    color: #666666;
    font-size: 0.95em;
}

/* Login Guide Section */
.page-login__login-guide {
    background-color: #ffffff;
}

.page-login__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page-login__guide-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px;
}

.page-login__guide-item:before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #017439;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-login__guide-step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__guide-step-text {
    color: #555555;
}

.page-login__note-list {
    list-style: disc;
    margin-left: 20px;
    color: #555555;
}

.page-login__note-list strong {
    color: #017439;
}

/* Security Measures Section */
.page-login__security-measures {
    background-color: #017439; /* Dark background for this section */
    color: #ffffff;
}

.page-login__security-measures .page-login__section-title {
    color: #ffffff;
}

.page-login__security-measures .page-login__section-description {
    color: #f0f0f0;
}

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.1); 
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-login__security-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Ensure images are not too small */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__security-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-login__security-text {
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-login__security-footer-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* CTA Register Section */
.page-login__cta-register {
    background-color: #f0f0f0;
    text-align: center;
    padding: 60px 0;
}

.page-login__cta-content {
    max-width: 800px;
}

.page-login__cta-register .page-login__section-title {
    color: #017439;
}

.page-login__cta-register .page-login__section-description {
    color: #555555;
    margin-bottom: 30px;
}

.page-login__btn-register {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

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

.page-login__cta-small-text {
    margin-top: 20px;
    font-size: 0.9em;
    color: #777777;
}

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

.page-login__app-download .page-login__section-title {
    color: #ffffff;
}

.page-login__app-download .page-login__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

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

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

.page-login__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.page-login__app-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-login__btn-download {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Consistent button color */
    color: #FFFF00; /* Consistent button font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

/* FAQ Section */
.page-login__faq {
    background-color: #ffffff;
    padding: 80px 0;
}

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

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

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

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

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.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); /* Change + to X or similar */
    content: "−"; /* Visually change to minus sign */
}

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

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

.page-login__faq-answer p {
    margin: 0;
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header spacing on mobile */
    }

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

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

    .page-login__login-card {
        padding: 30px 20px;
    }

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

    .page-login__btn-login {
        font-size: 1.1em;
        padding: 12px;
    }

    .page-login__links {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__section {
        padding: 60px 0;
    }

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

    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__features-grid,
    .page-login__security-grid {
        grid-template-columns: 1fr;
    }

    .page-login__feature-item,
    .page-login__security-item {
        padding: 25px;
    }

    .page-login__feature-icon,
    .page-login__security-icon {
        max-width: 200px;
    }

    .page-login__guide-item {
        padding-left: 50px;
    }

    .page-login__guide-item:before {
        width: 40px;
        height: 40px;
        font-size: 0.8em;
    }

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

    .page-login__app-text-block,
    .page-login__app-image-block {
        text-align: center;
        width: 100%;
    }

    .page-login__app-buttons {
        align-items: center;
    }

    .page-login__btn-download {
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers are responsive and prevent overflow */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-content,
    .page-login__login-card,
    .page-login__features-grid,
    .page-login__security-grid,
    .page-login__cta-content,
    .page-login__app-content,
    .page-login__app-text-block,
    .page-login__app-image-block,
    .page-login__app-buttons,
    .page-login__faq-list,
    .page-login__faq-item,
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-download {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific button and link adjustments for mobile */
    .page-login__btn-login,
    .page-login__btn-register,
    .page-login__btn-download {
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px;
    }
    .page-login__forgot-password-link,
    .page-login__register-link {
        width: 100%;
    }
}