* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0066ff;
    --secondary: #00c6ff;
    --accent: #ff007b;
    --dark: #1e1e2d;
    --light: #ffffff;
    --text-muted: #8e94a9;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    background-color: #0b0f19;
    /* Un gradiente de malla animado y oscuro premium */
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.4) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.3) 0, transparent 50%);
    background-size: 150% 150%;
    animation: gradientShift 15s ease infinite alternate;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bolas de luces desenfocadas en el fondo */
.background-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.background-pattern::before,
.background-pattern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.background-pattern::before {
    width: 400px;
    height: 400px;
    background: #00c6ff;
    top: -100px;
    left: -100px;
}

.background-pattern::after {
    width: 500px;
    height: 500px;
    background: #6a11cb;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* --- GLASSMORPHISM CONTAINER --- */
.login-container {
    background: rgba(25, 28, 36, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    padding: 45px 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    transform: translateY(0);
    transition: var(--transition);
}

.login-container:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Borramos la línea azul vieja superior */
.login-container::before {
    display: none; 
}

.logo {
    margin-bottom: 35px;
}

/* Reemplazamos el fondo blanco viejo por un contenedor elegante */
.logo-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Pulsación sutil y premium */
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 15px rgba(0, 198, 255, 0.1); border-color: rgba(255,255,255,0.05); }
    100% { box-shadow: 0 0 30px rgba(0, 198, 255, 0.3); border-color: rgba(255,255,255,0.2); }
}

.logo h1 {
    color: var(--light);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.logo p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #b4bce0;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #656d8a;
    font-size: 18px;
    transition: var(--transition);
}

/* Inputs translucidos */
.form-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: white;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.15);
}

.form-group input:focus + i {
    color: var(--secondary);
}

/* Toggle Password */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #656d8a;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.password-toggle:hover {
    color: var(--light);
}

/* --- BOTÓN DE LOGIN PREMIUM --- */
.btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, #0066ff 0%, #00c6ff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    
    -webkit-appearance: none;
    appearance: none;
}

/* Brillo al pasar el cursor (Efecto Swipe) */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 200%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 102, 255, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(0, 102, 255, 0.4);
}

.btn i {
    margin-right: 10px;
}

/* Notificaciones de error rediseñadas */
.notification {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification.error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.4);
    backdrop-filter: blur(5px);
}

.notification i {
    margin-right: 12px;
    font-size: 18px;
}

/* Footer text */
.footer {
    margin-top: 35px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ocultar shapes de index original, ahora el fondo CSS lo hace */
.floating-shapes {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .logo h1 { font-size: 24px; }
}