/* ===============================
   MICROSOFT GLASS LOGIN PRO v2
   Fluent • Depth • Smooth • Clean
================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #eef2f7, #f8fafc);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===============================
   FONDO FLUIDO PROFESIONAL
================================ */

.background-animation {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(37,99,235,0.15), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(59,130,246,0.15), transparent 45%);
    animation: floatBg 18s infinite alternate ease-in-out;
}

@keyframes floatBg {
    from { transform: translate3d(-2%, -2%, 0) scale(1); }
    to   { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

/* ===============================
   CONTENEDOR
================================ */

.login-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   CARD ESTILO WINDOWS 11
================================ */

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border-radius: 22px;
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.4);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        0 30px 60px rgba(0,0,0,0.08);

    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

/* Animación sutil al cargar */
.login-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.12),
        0 40px 80px rgba(0,0,0,0.10);
}

/* ===============================
   LOGO + TEXTOS
================================ */

.login-logo {
    width: 78px;
    display: block;
    margin: 0 auto 22px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.login-title {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* ===============================
   INPUTS MODERNOS
================================ */

.input-group {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
}

/* Icono izquierdo */
.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
    transition: 0.2s ease;
}

/* Icono derecho */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    transition: 0.2s ease;
}

.toggle-password:hover {
    color: #2563eb;
}

.input-group input {
    width: 100%;
    padding: 13px 42px 13px 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    transition: all 0.25s ease;
}

/* Focus Microsoft limpio */
.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    background: white;
}

/* Animación icono al enfocar */
.input-group input:focus + .input-icon {
    color: #2563eb;
}

/* VALIDACIÓN */
.input-valid {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}

.input-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220,38,38,0.12);
}

/* ===============================
   BOTÓN FLUENT
================================ */

button {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37,99,235,0.35);
}

button:active {
    transform: scale(0.98);
}

/* ===============================
   PROGRESS BAR PREMIUM
================================ */

.progress-bar-container {
    height: 4px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.3s ease;
}

/* ===============================
   MENSAJES
================================ */

.login-text {
    font-size: 13px;
    text-align: center;
    color: #374151;
    min-height: 18px;
}

.error-text {
    text-align: center;
    color: #dc2626;
    font-size: 13px;
    margin-top: 10px;
}

/* ===============================
   TRANSICIÓN DE SALIDA
================================ */

.fade-out {
    opacity: 0;
    transform: scale(0.96);
    transition: all 0.3s ease;
}