/* General styling for the login page */
.page-login {
    font-family: Arial, sans-serif;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding-top: 10px; /* Small top padding */
    background-color: #F4F7FB; /* Match body background for consistency */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-login__hero-content {
    max-width: 900px;
    margin: 20px auto 0 auto;
    text-align: center;
    padding: 0 20px;
}

.page-login__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}

.page-login__description {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Section */
.page-login__form-section {
    padding: 40px 0;
    background-color: #FFFFFF; /* Card BG */
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-login__section-title {
    font-size: 2em;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 15px;
}

.page-login__section-description {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
}

.page-login__login-form {
    background-color: #F4F7FB; /* Background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #D6E2FF; /* Border */
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #1F2D3D;
    background-color: #FFFFFF;
}

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

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.page-login__remember-me {
    color: #1F2D3D; /* Text Main */
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-login__forgot-password {
    color: #2F6BFF; /* Primary Color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #6FA3FF; /* Secondary Color */
}

.page-login__submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
    box-sizing: border-box;
    max-width: 100%; /* For mobile button responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__submit-btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
}

.page-login__register-info {
    font-size: 0.9em;
    color: #1F2D3D;
    margin-top: 10px;
}

.page-login__register-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #6FA3FF; /* Secondary Color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile button responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__register-btn:hover {
    background-color: #2F6BFF; /* Primary Color */
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
    margin-bottom: 40px;
}

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

.page-login__benefit-card {
    background-color: #FFFFFF; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border */
    transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

.page-login__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-width: 200px; /* Limit icon size for visual balance */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2F6BFF; /* Primary Color */
    margin-bottom: 10px;
}

.page-login__benefit-text {
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
}

.page-login__additional-info {
    font-size: 1em;
    color: #1F2D3D;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

/* Guide Section */
.page-login__guide-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Card BG */
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-login__step-item {
    background-color: #F4F7FB; /* Background */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #D6E2FF; /* Border */
    position: relative;
}

.page-login__step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: -50px auto 20px auto; /* Position slightly above the card */
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-login__step-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #2F6BFF; /* Primary Color */
    margin-bottom: 10px;
}

.page-login__step-text {
    font-size: 0.9em;
    color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
    margin-bottom: 40px;
}

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

.page-login__faq-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: #2F6BFF; /* Primary Color */
    margin-left: 15px;
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
    line-height: 1.6;
}

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

/* Security Info Section */
.page-login__security-info-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Card BG */
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-login__security-image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__feature-item {
    background-color: #F4F7FB; /* Background */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #D6E2FF; /* Border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-align: center;
}

.page-login__feature-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #2F6BFF; /* Primary Color */
    margin-bottom: 10px;
}

.page-login__feature-text {
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
}

/* CTA Section */
.page-login__cta-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Primary Color */
    color: #ffffff;
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
    color: #ffffff;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile button responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #ffffff;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    border-color: #4A8BFF;
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #2F6BFF; /* Primary Color */
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

.page-login__btn-secondary:hover {
    background-color: #F4F7FB;
    color: #2F6BFF;
    border-color: #F4F7FB;
    transform: translateY(-2px);
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.2em;
    }

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

    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
    /* General content padding */
    .page-login__container,
    .page-login__form-section .page-login__container,
    .page-login__benefits-section .page-login__container,
    .page-login__guide-section .page-login__container,
    .page-login__faq-section .page-login__container,
    .page-login__cta-section .page-login__container,
    .page-login__security-info-section .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 1. Top Section (Hero) */
    .page-login__hero-section {
        padding-top: 10px !important; /* Specific top padding */
        margin-bottom: 20px;
    }

    .page-login__hero-image-wrapper {
        max-height: 250px; /* Adjust height for mobile */
    }

    .page-login__hero-content {
        margin-top: 15px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em); /* Clamp for responsive font size */
        margin-bottom: 10px;
    }

    .page-login__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* 2. Single column long text container (Form, Benefits, Guide, FAQ, CTA, Security sections) */
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__faq-section,
    .page-login__cta-section,
    .page-login__security-info-section {
        padding: 30px 0;
        margin-bottom: 20px;
    }

    .page-login__section-title {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .page-login__section-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

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

    .page-login__form-input {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .page-login__submit-btn {
        padding: 12px 15px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__register-btn {
        padding: 8px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 3. Generic images and figure (all images) */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important; /* Ensure block display for full width */
    }

    .page-login__hero-image {
        object-fit: cover; /* Maintain aspect ratio and cover */
    }

    .page-login__benefit-icon {
        max-width: 150px; /* Adjust size for mobile */
        margin-bottom: 15px;
    }

    .page-login__security-image {
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    /* 4. Buttons and button containers */
    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    /* 5. Registration tutorial and FAQ blocks (Guide and FAQ sections) */
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__security-features {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
}