@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Outfit:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #07080f;
    color: #eeeef5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Gradientes de fondo */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(99,102,241,0.20) 0%, transparent 65%), radial-gradient(ellipse 50% 40% at 90% 90%, rgba(34,211,238,0.08) 0%, transparent 55%);
        pointer-events: none;
    }

    /* Grid de l�neas */
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background-image: linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
        pointer-events: none;
    }

/* Tarjeta principal */
.card {
    position: relative;
    z-index: 1;
    background: rgba(15, 16, 24, 0.92);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    padding: 44px 42px;
    width: 420px;
    max-width: 95vw;
    box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,102,241,0.08);
    animation: aparecer 0.45s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 30px;
}

.logo-icono {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
    flex-shrink: 0;
}

.logo-nombre {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #eeeef5;
}

.logo-to { color: #00ff88; }

.logo-sub {
    font-size: 11px;
    color: #7c7f9e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* T�tulos */
h1 {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.subtitulo {
    font-size: 13.5px;
    color: #7c7f9e;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Campos del formulario */
.campo {
    margin-bottom: 16px;
}

    .campo label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #7c7f9e;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
    }

    .campo input {
        width: 100%;
        background: #161722;
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 11px;
        padding: 12px 15px;
        font-size: 14px;
        font-family: 'Outfit', sans-serif;
        color: #eeeef5;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .campo input:focus {
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99,102,241,0.13);
        }

        .campo input::placeholder {
            color: #3e4060;
        }

/* Bot�n ingresar */
.btn-ingresar {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    background: linear-gradient(135deg, #00ff88, #00c96b);
    color: #07080f;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,255,136,0.25);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

    .btn-ingresar:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0,255,136,0.38);
    }

    .btn-ingresar:active {
        transform: translateY(0);
    }

    .btn-ingresar:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Mensaje de error */
.error-msg {
    display: none;
    background: rgba(248,113,113,0.10);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 10px;
    padding: 10px 14px;
    color: #f87171;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}

/* Spinner de carga */
.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(0,0,0,0.25);
    border-top-color: #07080f;
    border-radius: 50%;
    animation: girar 0.7s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* Pie */
.footer-login {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 11.5px;
    color: #3e4060;
}
