body {
    background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 50%, #fae8ff 100%) !important;
    font-family: 'Outfit', sans-serif !important;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 25s ease-in-out infinite alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    top: -120px;
    left: -120px;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0) 70%);
    top: 55%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    z-index: 10;
    box-sizing: border-box;
}

.login-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 3.5rem 2.75rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 55px rgba(99, 102, 241, 0.15), 0 20px 50px rgba(15, 23, 42, 0.08);
}

.auth-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 90px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: white;
    padding: 4px;
}

.auth-logo img:hover {
    transform: scale(1.08) rotate(5deg);
}

.dept-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.5rem 0 0.25rem 0;
    letter-spacing: 0.5px;
}

.app-subtitle {
    font-size: 0.875rem;
    color: #4f46e5;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2.25rem;
}

.form-group-custom {
    margin-bottom: 1.75rem;
    text-align: left;
}

.form-group-custom label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.form-control-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    color: #0f172a;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
}

.form-control-custom::placeholder {
    color: #94a3b8;
}

.form-control-custom:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group-custom:focus-within label {
    color: #4f46e5;
}

.captcha-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.captcha-input-wrapper {
    flex: 1.2;
    text-align: left;
}

.captcha-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.25rem 0.75rem;
    height: 52px;
    flex: 1;
    box-sizing: border-box;
}

.captcha-img-wrapper .captcha {
    margin: 0;
    display: flex;
    align-items: center;
}

.captcha-img-wrapper .captcha span img {
    height: 38px;
    width: auto;
    border-radius: 8px;
    display: block;
    background: white;
    padding: 2px;
    box-sizing: border-box;
}

.reload-btn-custom {
    background: transparent;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0.25rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.reload-btn-custom:hover {
    transform: rotate(180deg);
    color: #3730a3;
}

.btn-submit-custom {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    margin-top: 1rem;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
}

.btn-submit-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}

.btn-submit-custom:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.alert-custom {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.alert-custom i {
    color: #ef4444;
    flex-shrink: 0;
}

.error-msg {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2.5rem 1.75rem;
    }
    .dept-title {
        font-size: 1.2rem;
    }
}
