:root {
    --bg-dark: #0f172a;
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --text-light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden; /* Evita scrollbars por las formas de fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- Fondo Animado Futurista --- */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4, transparent);
    opacity: 0.4;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* --- Tarjeta Glassmorphism --- */
.login-wrapper {
    perspective: 1000px;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 45px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Header y Tipografía --- */
.brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: white;
}

.highlight {
    background: linear-gradient(90deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Inputs Modernos --- */
.input-group {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #64748b;
    z-index: 10;
    transition: 0.3s;
}

.login-card input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid transparent;
    padding: 14px 15px 14px 45px; /* Espacio para el icono */
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.login-card input::placeholder {
    color: #64748b;
}

.login-card input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-card input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: #22d3ee;
}

/* --- Botón Futurista --- */
.btn-glow {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-glow:active {
    transform: translateY(0);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-glow:hover .arrow-icon {
    transform: translateX(4px);
}

/* --- Errores --- */
.error-msg {
    color: #f87171;
    font-size: 0.85rem;
    text-align: left;
    margin-top: -10px;
    margin-bottom: 10px;
    margin-left: 5px;
    display: flex;
    align-items: center;
    animation: shake 0.4s ease-in-out;
}

.error-msg::before {
    content: "•";
    margin-right: 5px;
    font-size: 1.2rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* --- Footer --- */
.card-footer {
    margin-top: 25px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}