﻿
/* Tus estilos originales se mantienen exactamente igual */
.login-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.login-root .background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e3a8a, #2563eb, #3b82f6, #60a5fa);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-root .login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.8s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-root .logo-text {
    text-align: center;
    margin-bottom: 30px;
}

    .login-root .logo-text h1 {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(45deg, #1e3a8a, #2563eb, #059669, #f59e0b);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: logoGlow 3s ease-in-out infinite;
        letter-spacing: -1px;
    }

@keyframes logoGlow {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.login-root .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.login-root .form-group {
    margin-bottom: 20px;
}

    .login-root .form-group label {
        display: block;
        color: #374151;
        font-weight: 500;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }

    .login-root .form-group input {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.9);
    }

        .login-root .form-group input:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background: white;
        }

.login-root .login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #1e3a8a, #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-root .login-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    }

    .login-root .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .login-root .login-button .spinner {
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-root .message-container {
    min-height: 45px;
    margin-bottom: 15px;
}

.login-root .message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    animation: messageSlide 0.4s ease-out forwards;
}

@keyframes messageSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-root .message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.login-root .message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-root .forgot-password {
    text-align: center;
    margin-top: 20px;
}

    .login-root .forgot-password a {
        color: #2563eb;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

        .login-root .forgot-password a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

.login-root .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

    .login-root .floating-elements::before, .login-root .floating-elements::after {
        content: '';
        position: absolute;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }

    .login-root .floating-elements::before {
        top: 10%;
        left: 10%;
        animation-delay: -3s;
    }

    .login-root .floating-elements::after {
        top: 70%;
        right: 10%;
        animation-delay: -1s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@media (max-width: 480px) {
    .login-root .login-container {
        margin: 20px;
        padding: 30px 25px;
    }

    .login-root .logo-text h1 {
        font-size: 2rem;
    }
}

/* --- Estilos para las nuevas pestañas (Sin cambios) --- */
.login-root .tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
}

.login-root .tab-button {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
}

    .login-root .tab-button::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #2563eb;
        transform: scaleX(0);
        transition: transform 0.3s ease-out;
    }

    .login-root .tab-button.active {
        color: #1e3a8a;
    }

        .login-root .tab-button.active::after {
            transform: scaleX(1);
        }

.login-root .tab-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-root .biometric-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.login-root .biometric-text {
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
}

.login-root .fingerprint-icon {
    color: #3b82f6;
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

