.page-login {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--background, #F4F7FB);
    color: var(--text-main, #1F2D3D);
    font-family: Arial, sans-serif;
}

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

.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px; /* Space below content */
    background-color: #F4F7FB; /* Consistent background */
}

.page-login__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px; /* Space between image and text */
    object-fit: cover;
    border-radius: 8px;
}

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

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--custom-color-1776249996415, #000000); /* Using specified custom color for H1 */
}

.page-login__description-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main, #1F2D3D);
}

.page-login__form-section {
    padding: 60px 20px;
    background-color: var(--background, #F4F7FB);
}

.page-login__form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-b-g, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border, #D6E2FF);
}

.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--custom-color-1776249996415, #000000);
}

.page-login__form {
    display: flex;
    flex-direction: column;
}

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

.page-login__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main, #1F2D3D);
}

.page-login__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border, #D6E2FF);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
    background-color: #F8F9FA;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__input::placeholder {
    color: #8898AA;
}

.page-login__input:focus {
    border-color: var(--primary-color, #2F6BFF);
    outline: none;
    box-shadow: 0 0 0 3px var(--glow, #A5C4FF);
}

.page-login__options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

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

.page-login__forgot-password:hover {
    color: var(--secondary-color, #6FA3FF);
    text-decoration: underline;
}

.page-login__submit-button {
    display: block; /* Make it block to take full width */
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center; /* Center text for <a> tag */
    text-decoration: none; /* Remove underline for <a> tag */
    transition: background 0.3s ease, transform 0.2s ease;
}

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

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
}

.page-login__register-link {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: var(--secondary-color, #6FA3FF);
    text-decoration: underline;
}

.page-login__security-section {
    padding: 60px 20px;
    background-color: var(--background, #F4F7FB);
    text-align: center;
}

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

.page-login__security-item {
    background-color: var(--card-b-g, #FFFFFF);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border, #D6E2FF);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__security-icon {
    width: 250px; /* Ensuring min 200px display size */
    height: 187px; /* For 4:3 aspect ratio */
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__security-heading {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--custom-color-1776249996415, #000000);
}

.page-login__security-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D);
    margin-bottom: 15px;
}

.page-login__read-more-link {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto; /* Push to bottom */
    transition: color 0.3s ease;
}

.page-login__read-more-link:hover {
    color: var(--secondary-color, #6FA3FF);
    text-decoration: underline;
}

.page-login__faq-section {
    padding: 60px 20px;
    background-color: var(--background, #F4F7FB);
}

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

.page-login__faq-item {
    background-color: var(--card-b-g, #FFFFFF);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border, #D6E2FF);
}

.page-login__question {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--custom-color-1776249996415, #000000);
    margin-bottom: 10px;
}

.page-login__answer {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-login__hero-image {
        width: 100%;
        height: auto;
        max-width: 100%; /* Ensure images are responsive and don't overflow */
    }

    .page-login__security-icon {
        width: 200px; /* Minimum display size */
        height: auto;
        max-width: 100%; /* Ensure images are responsive and don't overflow */
    }

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

    .page-login__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-login__form-container {
        padding: 30px 25px;
    }

    .page-login__section-title {
        font-size: clamp(1.6em, 5vw, 2em);
    }

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

/* Ensure no horizontal overflow */
.page-login * {
    box-sizing: border-box;
}
.page-login {
    overflow-x: hidden;
}
.page-login img {
    max-width: 100%;
    height: auto;
}