body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10;
    background:
        radial-gradient(circle at 15% 20%, rgba(55, 48, 163, 0.18), transparent 42%),
        radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.14), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(212, 160, 23, 0.20), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(242, 201, 76, 0.14), transparent 40%),
        linear-gradient(135deg, #f4f5fb 0%, #faf7ef 100%);
}
.login-container {
    position: relative;
    z-index: 10;
}
.login-card {
    backdrop-filter: blur(6px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3730a3 0%, #d4a017 50%, #3730a3 100%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}
.logo-badge {
    background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
    box-shadow: 0 10px 25px -8px rgba(55, 48, 163, 0.55), 0 0 0 6px rgba(212, 160, 23, 0.12);
    animation: floatIcon 4.5s ease-in-out infinite;
}
.input-field {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.input-field:hover {
    border-color: #c7c9f5;
}
.input-field:focus {
    box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.15);
}
.input-icon {
    transition: color 0.2s ease;
}
.input-field:focus ~ .input-icon,
.input-wrap:focus-within .input-icon {
    color: #3730a3;
}
.btn-ingresar {
    background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-ingresar:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(55, 48, 163, 0.5);
}
.btn-ingresar:active:not(:disabled) {
    transform: translateY(0);
}
.btn-ingresar:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}
.accent-divider {
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
}
.error-alert {
    animation: shake 0.4s ease;
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
