body {
    background-color: #f8f9fa;
    font-family: 'Nunito', sans-serif;
}

.login_bg {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

#auth .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 20px;
}

#auth #auth-center {
    padding: 40px 30px;
}

#auth .login_heading {
    text-align: center;
    margin-bottom: 30px;
}

#auth .login_heading h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

#auth .login_heading p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Form floating labels fix */
#auth .form-floating {
    position: relative;
}

#auth .form-floating > .form-control {
    padding: 1rem 0.75rem;
    height: auto;
    min-height: 50px;
}

#auth .form-floating > .form-control:focus,
#auth .form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

#auth .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
}

#auth .form-floating > .form-control:focus ~ label,
#auth .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--bs-primary, #007bff);
    font-weight: 500;
}

#auth .form-input {
    background-color: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #495057;
}

#auth .form-input:focus {
    border-color: var(--bs-primary, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
    outline: none;
}

#auth .form-input::placeholder {
    color: transparent;
}

#auth .login_btn {
    height: 50px;
    width: 100%;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bs-primary, #007bff);
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

#auth .login_btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.form-control-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 4;
    transition: color 0.2s ease;
}

.form-control-icon:hover {
    color: var(--bs-primary, #007bff);
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Mobile responsiveness */
@media screen and (max-width: 576px) {
    #auth #auth-center {
        padding: 30px 20px;
    }

    #auth .card {
        margin: 10px;
        border-radius: 8px;
    }

    #auth .login_heading h3 {
        font-size: 1.5rem;
    }

    #auth .login_heading p {
        font-size: 0.9rem;
    }
}

/* Dark theme support */
body.theme-dark {
    background-color: #1a1a1a;
}

body.theme-dark .login_bg {
    background-color: #1a1a1a;
}

body.theme-dark #auth .card {
    background-color: #2d3748;
    color: #fff;
}

body.theme-dark #auth .login_heading h3 {
    color: #fff;
}

body.theme-dark #auth .login_heading p {
    color: #a0aec0;
}

body.theme-dark #auth .form-input {
    background-color: #4a5568;
    border-color: #718096;
    color: #fff;
}

body.theme-dark #auth .form-floating > label {
    color: #a0aec0;
}

body.theme-dark #auth .form-floating > .form-control:focus ~ label,
body.theme-dark #auth .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #90cdf4;
}

body.theme-dark .form-control-icon {
    color: #a0aec0;
}

body.theme-dark .form-control-icon:hover {
    color: #90cdf4;
}
