/* General styles for .page-login scope */
.page-login {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    padding-bottom: 40px; /* General padding for the bottom */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text for hero */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small padding top, body handles header offset */
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 40px;
    overflow: hidden; /* Prevent content overflow */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px; /* Space between image and content */
}

.page-login__hero-content {
    max-width: 900px;
    padding: 20px;
    background: #17191F; /* Card BG */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px; /* Changed from negative margin to positive to prevent text over image */
    position: relative;
    z-index: 1;
}

.page-login__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 15px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-login__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    opacity: 0.9;
}

/* Login Form Section */
.page-login__form-section {
    display: flex;
    justify-content: center;
    padding: 20px 15px;
    margin-bottom: 40px;
}

.page-login__form-container {
    background-color: #17191F; /* Card BG */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 100%;
    border: 1px solid #A84F0C; /* Border */
}

.page-login__form-title {
    font-size: 2rem;
    font-weight: 600;
    color: #FF8C1A; /* Primary color for emphasis */
    text-align: center;
    margin-bottom: 30px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #A84F0C; /* Border */
    border-radius: 8px;
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 243, 230, 0.6); /* Lighter placeholder */
}

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

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

.page-login__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #FF8C1A; /* Primary color for checkbox */
}

.page-login__forgot-password {
    color: #FFA53A; /* Auxiliary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6; /* Text Main */
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-height: 44px; /* Touch target size */
}

.page-login__submit-button:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly brighter on hover */
    transform: translateY(-2px);
}

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

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

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 40px 15px;
    text-align: center;
    margin-bottom: 40px;
}

.page-login__benefits-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FF8C1A; /* Primary color */
    margin-bottom: 30px;
}

.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-login__benefit-card {
    background-color: #17191F; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-login__benefit-icon {
    width: 100%; /* Ensure it takes full width of its container */
    max-width: 250px; /* Limit max width for smaller images */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    /* Ensure minimum size for content images */
    min-width: 200px;
    min-height: 200px;
    filter: none; /* No filter */
}

.page-login__benefit-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 10px;
}

.page-login__benefit-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    opacity: 0.85;
}

/* Call to Action Section */
.page-login__cta-section {
    background-color: #17191F; /* Card BG */
    padding: 50px 15px;
    text-align: center;
    border-top: 1px solid #A84F0C; /* Border */
}

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

.page-login__cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FF8C1A; /* Primary color */
    margin-bottom: 20px;
}

.page-login__cta-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6; /* Text Main */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-height: 44px; /* Touch target size */
    min-width: 160px; /* Ensure a decent width */
}

.page-login__cta-button:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly brighter on hover */
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-login__hero-content {
        margin-top: 20px; /* Keep consistent with desktop, no negative margin */
        padding: 15px;
    }

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

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

    .page-login__form-title {
        font-size: 1.8rem;
    }

    .page-login__benefits-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }

    .page-login__benefits-title {
        font-size: 1.8rem;
    }

    .page-login__cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* Critical mobile overflow fix */
    .page-login__hero-image,
    .page-login__benefit-icon {
        max-width: 100%;
        height: auto;
    }

    .page-login {
        overflow-x: hidden; /* Prevent horizontal scroll on main */
    }
}

@media (max-width: 549px) {
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-login__submit-button,
    .page-login__cta-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Ensure content area images meet minimum display size and don't use filters */
.page-login img {
    /* This rule applies to any img *within* .page-login, ensuring minimum display size */
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Absolutely no filters */
}
/* Override for hero image to allow larger scaling, but still no filter */
.page-login__hero-image {
    min-width: auto;
    min-height: auto;
}