.page-login {
    background-color: #140C0C; /* Background */
    color: #FFF1E8; /* Text Main */
    font-family: Arial, sans-serif;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    overflow: hidden; /* Ensure content doesn't break out */
}

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

.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: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    display: flex; /* Use flex for content arrangement */
    flex-direction: column;
    align-items: center;
}

.page-login__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F3C54D; /* Gold */
}

.page-login__tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
}

.page-login__form-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.page-login__form-container {
    background-color: #2A1212; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #6A1E1E; /* Border */
}

.page-login__form-title {
    font-size: 2.2rem;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 5px;
    background-color: #140C0C; /* Background */
    color: #FFF1E8; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
    color: #FFF1E8;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-bottom: 15px;
}

.page-login__submit-button:hover {
    opacity: 0.9;
}

.page-login__form-actions {
    text-align: center;
}

.page-login__register-link,
.page-login__forgot-password {
    display: block;
    margin-top: 10px;
    color: #E53030; /* Accent color for links */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.page-login__register-link:hover,
.page-login__forgot-password:hover {
    color: #FFB04A; /* Gold on hover */
}

.page-login__features-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-login__features-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #F3C54D; /* Gold */
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-login__feature-card {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #6A1E1E; /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__feature-icon {
    width: 400px; /* Ensure >200px and matches HTML attribute */
    height: 300px; /* Maintain aspect ratio (4:3) and matches HTML attribute */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    max-width: 100%; /* Responsive image */
}

.page-login__feature-heading {
    font-size: 1.5rem;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__feature-description {
    font-size: 0.95rem;
    color: rgba(255, 241, 232, 0.8);
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-login__hero-content {
        padding: 15px;
    }

    .page-login__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-login__tagline {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

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

    .page-login__features-section {
        padding: 40px 15px;
    }

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

    .page-login__feature-icon {
        width: 100%; /* Ensure it takes full width of parent */
        height: auto; /* Maintain aspect ratio */
        max-width: 300px; /* Limit max width for smaller screens */
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensure all images within .page-login are responsive and not too small */
    .page-login img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 549px) {
    .page-login__form-section {
        padding: 30px 15px;
    }
}