.auth-container {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
    max-width: 500px;
    width: 90%;
    min-height: 70vh;
    max-height: 80vh;
    z-index: 100; /* Make sure it's above overlays if needed */
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(var(--bs-body-color-rgb, 0, 0, 0), 0.15);
}

.auth-background {
    position: absolute;
    inset: 0;
    z-index: 0;

    /* Background image applied directly here */
    backdrop-filter: blur(3px) brightness(1);
    -webkit-backdrop-filter: blur(3px) brightness(1); /* Safari support */
}

.auth-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Optional: Prevent wrapping layout shift by hiding overflow elsewhere */
.auth-form {
    overflow: visible !important;
}

.auth-form input.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.auth-form input.form-control:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    border-color: #80bdff;
    border-width: 1px;
}

.auth-form button {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.1rem; /* optional: make text slightly larger */
}

/* Position validation message absolutely so it floats outside */
.invalid-feedback {
    position: absolute;
    bottom: 3.1rem;
    left: 0;
    background: #dc3545;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 8px 8px 0 0;
    border-width: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}