:root {
    --nexus-navy: #0A192F;
    --nexus-blue: #004D7A;
    --nexus-cyan: #00D2FF;
    --nexus-light: #F0F4F8;
    --text-main: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--nexus-light);
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Evita scroll por los blobs */
    min-height: 100vh;
}

/* ==========================================
   FONDOS FLUIDOS Y DINÁMICOS (NEXUS VIBE)
   ========================================== */
.ambient-background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    top: 0;
    left: 0;
    overflow: hidden;
    background: #eef2f5;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-navy {
    width: 500px;
    height: 500px;
    background: var(--nexus-navy);
    top: -10%;
    left: -10%;
}

.blob-cyan {
    width: 400px;
    height: 400px;
    background: var(--nexus-cyan);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.blob-blue {
    width: 350px;
    height: 350px;
    background: var(--nexus-blue);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-30px, 20px) scale(0.9); }
}

/* ==========================================
   TARJETA DE LOGIN (GLASSMORPHISM)
   ========================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(10, 25, 47, 0.1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   BRANDING & TEXTOS
   ========================================== */
.brand-section {
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================
   NUEVO LOGO DE IMAGEN
   ========================================== */
.main-brand-logo {
    max-width: 220px; /* Ajusta este valor según el tamaño de tu imagen */
    height: auto;
    margin: 0 auto 15px;
    display: block;
    transition: transform 0.5s ease;
}

.login-card:hover .main-brand-logo {
    transform: scale(1.05); /* Pequeño efecto de zoom al pasar el mouse por la tarjeta */
}

.logo-icon-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--nexus-navy), var(--nexus-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 77, 122, 0.2);
    transform: rotate(-10deg);
    transition: transform 0.5s ease;
}


.logo-icon {
    font-size: 2rem;
    color: var(--nexus-cyan);
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--nexus-navy);
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.brand-title span {
    color: var(--nexus-blue);
    font-weight: 300;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ==========================================
   INPUTS FLOTANTES MINIMALISTAS
   ========================================== */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label i {
    font-size: 1.1rem;
    color: #a0aec0;
    transition: color 0.3s ease;
}

/* Animación del Label al escribir o enfocar */
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--nexus-cyan);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: white;
    padding: 0 5px;
    color: var(--nexus-blue);
    font-weight: 600;
}

.input-group input:focus + label i,
.input-group input:not(:placeholder-shown) + label i {
    color: var(--nexus-cyan);
}

/* ==========================================
   BOTÓN HIGH-TECH
   ========================================== */
.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nexus-navy), var(--nexus-blue));
    color: white;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--nexus-blue), var(--nexus-cyan));
    box-shadow: 0 15px 25px rgba(0, 210, 255, 0.3);
}

.btn-submit:hover::after {
    left: 100%;
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* ==========================================
   ERRORES Y FOOTER
   ========================================== */
.error-banner {
    background: rgba(211, 26, 44, 0.1);
    color: #D31A2C;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(211, 26, 44, 0.2);
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.footer-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: #999;
}