    :root {
        --primary: #0d6efd;
        --primary-hover: #0b5ed7;
        --bs-body-bg: #f8f9fa;
    }
    
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .login-container {
        max-width: 500px;
        width: 100%;
    }

.login-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    /* min-height: 550px; */

    /* Add animation */
    animation: cardFadeIn 0.8s ease-out forwards;
}

.login-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 15px rgba(13, 110, 253, 0.3);
    transition: all 0.4s ease;
    border-radius: 1.1rem;
}


@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px); /* start slightly lower */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: linear-gradient(135deg, #0d6efd, #3b8bff) !important; /* vibrant blue */
    border-bottom: none !important;
    padding: 0.75rem 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* bottom shadow */
}

    /* New Input Style (Screenshot Style) */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
    display: block;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    position: relative;
}

.input-wrapper i {
    font-size: 18px;
    color: #9e9e9e;
    margin-right: 10px;
}

.input-wrapper input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    color: #333;
     background: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
/* Chrome autofill remove sky-blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #333;
    transition: background-color 10000s ease-in-out 0s;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    background: transparent !important;
}

.input-wrapper input::placeholder {
    color: #bfbfbf;
    font-weight: 400;
}

.input-wrapper:focus-within {
    border-bottom: 1px solid #6e00ff;
}

.password-toggle {
    font-size: 18px;
    color: #9e9e9e;
    cursor: pointer;
    margin-left: 8px;
}


    .card-header strong {
        font-size: 2rem;   
        font-weight: 700;
        color: white;  
    }

    .card-body {
        padding: 1.5rem 2.5rem;
    }

    .form-title {
        font-weight: 600;
        margin-bottom: 1.5rem;
        text-align: center;
        font-size: 2rem;
    }

    .form-floating > .form-control {
        padding: 1rem 1rem 1rem 2.5rem;
        height: calc(3.5rem + 2px);
    }

    .form-floating > label {
        padding: 1rem 0.75rem 1rem 2.5rem;
    }

    .input-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        z-index: 2;
    }

    .password-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        cursor: pointer;
        z-index: 2;
    }

    .btn-primary {
        background: var(--primary);
        border-color: var(--primary);
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-radius: 0.5rem;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .btn-primary:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    }

    .btn-outline-primary {
        border-color: var(--primary);
        color: var(--primary);
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .btn-outline-primary:hover {
        background-color: rgba(13, 110, 253, 0.1);
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .or-divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 1.5rem 0;
        color: #6c757d;
        font-size: 0.9rem;
    }

    .or-divider::before,
    .or-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .or-divider::before {
        margin-right: 1rem;
    }

    .or-divider::after {
        margin-left: 1rem;
    }

    .alert {
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-icon {
        margin-left: 0.5rem;
    }

    /* Button hover shimmer effect */
    .btn-primary::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: all 0.8s ease;
    }

    .btn-primary:hover::after {
        left: 100%;
    }

    /* Form focus effects */
    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: var(--primary);
        opacity: 1;
        transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    }

    /* Alert animations */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .alert {
        animation: fadeInDown 0.5s ease forwards;
    }

    .hidden {
        display: none;
    }

    .face-login-panel {
        display: none;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: 0.75rem;
        background: #f8f9fa;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    .face-login-panel.active {
        display: block;
    }

    .face-auth-camera {
        width: 100%;
        aspect-ratio: 4 / 3;
        background: #111;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .face-auth-status {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        text-align: center;
        color: #6c757d;
    }

    .face-auth-status.error {
        color: #dc3545;
    }
