/* style/login.css */

/* --- Base Styles --- */
.page-login {
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-login__section-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__section-description {
    color: #A7D9B8; /* Custom Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 10px;
}

.page-login__hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1; /* Ensure text is above any potential background layers */
}

.page-login__main-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color */
}

.page-login__description {
    color: #A7D9B8; /* Custom Text Secondary */
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background-color: #11271B; /* Custom Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #2E7A4E; /* Custom Border */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #F2FFF6; /* Custom Text Main */
    font-weight: 600;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 5px;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Custom Text Secondary */
    opacity: 0.7;
}

.page-login__form-input:focus {
    border-color: #57E38D; /* Glow color */
    outline: none;
    box-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-login__form-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__cta-button,
.page-login__login-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word;
}

.page-login__btn-primary,
.page-login__login-button {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
    color: #F2FFF6; /* Custom Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn-primary:hover,
.page-login__login-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

.page-login__forgot-password {
    color: #A7D9B8; /* Custom Text Secondary */
    text-align: center;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #57E38D; /* Glow color */
}

.page-login__register-prompt {
    color: #A7D9B8; /* Custom Text Secondary */
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #F2C14E; /* Gold color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #57E38D; /* Glow color */
}

/* --- Benefits Section --- */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green for a darker section */
}

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

.page-login__benefit-card {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    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.3);
}

.page-login__card-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 400px; /* Respect image dimensions */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-login__card-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-login__card-text {
    color: #A7D9B8; /* Custom Text Secondary */
    font-size: 0.95em;
}

/* --- How to Login Section --- */
.page-login__how-to-login {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
}

.page-login__login-steps {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    counter-reset: login-step;
}

.page-login__step-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-left: 5px solid #2AD16F; /* Highlight step */
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-login__step-item::before {
    counter-increment: login-step;
    content: "Bước " counter(login-step);
    position: absolute;
    left: -15px;
    top: -15px;
    background-color: #2AD16F;
    color: #F2FFF6;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9em;
}

.page-login__step-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 700;
    padding-left: 10px;
}

.page-login__step-text {
    color: #A7D9B8; /* Custom Text Secondary */
    padding-left: 10px;
}

/* --- Troubleshooting Section --- */
.page-login__troubleshooting-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__trouble-card {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- Security Measures Section --- */
.page-login__security-measures {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-login__security-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-login__security-item::before {
    content: "🔒"; /* Lock emoji as icon */
    font-size: 1.8em;
    line-height: 1;
    color: #F2C14E; /* Gold color */
    flex-shrink: 0;
}

.page-login__item-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1.4em;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-login__item-text {
    color: #A7D9B8; /* Custom Text Secondary */
}

/* --- FAQ Section --- */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-login__faq-list {
    margin-top: 50px;
}

.page-login__faq-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    color: #F2FFF6; /* Custom Text Main */
    font-weight: 600;
    font-size: 1.1em;
    list-style: none; /* Hide default marker */
}

.page-login__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2AD16F; /* Button color for toggle */
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-login__faq-answer {
    padding: 0 30px 20px 30px;
    color: #A7D9B8; /* Custom Text Secondary */
    font-size: 0.95em;
    line-height: 1.7;
}

/* --- CTA Bottom --- */
.page-login__cta-bottom {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
    text-align: center;
}

.page-login__cta-container {
    max-width: 900px;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Gold color */
    border: 2px solid #F2C14E; /* Gold border */
}

.page-login__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: #F2FFF6;
    border-color: #F2FFF6;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 7vw, 3em);
    }
    .page-login__hero-section {
        padding: 40px 15px;
    }
    .page-login__benefits-section,
    .page-login__how-to-login,
    .page-login__troubleshooting-section,
    .page-login__security-measures,
    .page-login__faq-section,
    .page-login__cta-bottom {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsive adaptation */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsive adaptation (if video were present) */
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile button responsive adaptation */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .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; /* Add padding to prevent text touching edges */
        padding-right: 15px; /* Add padding to prevent text touching edges */
    }
    
    /* Mobile container adaptation */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow for containers */
    }

    /* Specific mobile top padding for hero/video sections */
    .page-login__hero-section,
    .page-login__video-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure flex-wrap for button groups on mobile */
    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-login__hero-content {
        padding: 0 15px;
    }

    .page-login__login-form-wrapper {
        padding: 20px;
    }

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

    .page-login__step-item::before {
        left: 5px; /* Adjust position for mobile */
        top: -10px;
    }
    .page-login__step-title, .page-login__step-text {
        padding-left: 0; /* Remove extra left padding on mobile */
    }
    .page-login__security-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-login__security-item::before {
        margin-bottom: 10px;
    }
}