/* ── Login Page — Grupo Patio · EVA Consulting ─────────────────────────── */

* { font-family: 'Inter', 'Segoe UI', sans-serif; box-sizing: border-box; }

/* ── Animated background ─────────────────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #0b1a2e;
}

/* Subtle animated gradient blobs */
.login-body::before,
.login-body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}
.login-body::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #0d6efd 0%, transparent 70%);
    top: -120px; left: -120px;
}
.login-body::after {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation-delay: -6s;
}
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

/* Canvas for particles */
#loginCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ── Layout wrapper ───────────────────────────────────────────────────────── */
.login-page {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem;
    justify-content: center;
}

/* ── Header branding ─────────────────────────────────────────────────────── */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}
.login-header .eva-logo-wrap img {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}
.login-header .system-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.login-header .system-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.35rem;
}
.login-header .divider-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00d4ff);
    border-radius: 4px;
    margin: 1rem auto 0;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.login-card {
    background: rgba(255, 255, 255, 0.97);
    border: none;
    border-radius: 16px;
    padding: 2.2rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.login-card .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.4rem;
}
.login-card .input-group-text {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}
.login-card .form-control {
    border-color: #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
}
.login-card .form-control:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
.login-card .btn-outline-secondary {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.btn-login {
    background: linear-gradient(135deg, #0d6efd 0%, #0047cc 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.7rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(13,110,253,0.35);
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,110,253,0.45);
    color: #fff;
}
.btn-login:active { transform: translateY(0); }

/* ── Card header accent ──────────────────────────────────────────────────── */
.card-accent-line {
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #00d4ff);
    border-radius: 4px 4px 0 0;
    margin: -2.2rem -2rem 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}
.login-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.login-footer a:hover { color: #00d4ff; }
.login-footer img.footer-eva-logo {
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
    transition: opacity 0.2s;
    opacity: 0.9;
}
.login-footer a:hover img.footer-eva-logo { opacity: 1; }
