﻿/* ===================================================================
   SVJ STYLE — login.css (logo centrado simétrico + única fuente)
   =================================================================== */

/* ============== Variables ============== */
:root {
    --bg1: #6ee7f9; /* celeste fondo */
    --bg2: #7c3aed; /* morado fondo */
    --bg3: #ec4899; /* fucsia fondo */

    --panel: #ffffff;
    --muted: #64748b;
    --ink: #0b1222;
    --radius: 22px;
    --shadow-lg: 0 22px 60px rgba(2,6,23,.25);
    --shadow-md: 0 14px 30px rgba(2,6,23,.14);
    --ring: 0 0 0 4px rgba(79,70,229,.12);
    --brandA: #7b5cff; /* botón */
    --brandB: #5a44d6;
    /* Panel del logo (45° dos colores) */
    --panel45-a: #4f46e5;
    --panel45-b: #7c3aed;
    /* Espacios */
    --gap-brand: 16px; /* espacio bajo el panel del logo */
    /* Tipografía ÚNICA */
    --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============== Reset básico ============== */
*, *::before, *::after {
    box-sizing: border-box
}

html, body {
    height: 100%
}

img {
    max-width: 100%;
    display: block
}

/* ============== Body (fondo) ============== */
body.login-body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Opción simple (1 solo gradiente, 3 colores) */
    background: linear-gradient(135deg, #3A3A3A 10%, #757575 55%, #3A3A3A 90%);
}

/* ============== Shell & Card ============== */
.login-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.login-card {
    width: 350px;
    max-width: 92vw;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

/* ============== Branding (panel superior) ============== */
.login-right {
    order: -1;
    padding: 18px 18px 0; /* el gap inferior lo da --gap-brand */
}

/* Panel con padding simétrico y logo centrado vertical/horizontal */
.brand {
    position: relative;
    min-height: 180px;
    border-radius: 18px;
    margin: 0 0 var(--gap-brand);
    padding: 22px 28px; /* ⇠ mismo espacio arriba y abajo */
    background: linear-gradient(45deg, var(--panel45-a), var(--panel45-b));
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center; /* ⇠ centra vertical */
    justify-content: center; /* ⇠ centra horizontal */
    overflow: hidden;
}

/* Logo: respeta proporción natural, sin depender de “scale” */
.brand-img {
    max-height: 20%; /* ⇠ usa el padding para el aire */
    width: 90px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.18));
}

/* ============== Formulario ============== */
.login-left {
    padding: 0 22px 26px;
}

.lg-form {
    background: #f7f8ff;
    border: 1px solid #e6ebff;
    border-radius: 14px;
    padding: 16px 18px 18px;
    box-shadow: 0 10px 28px rgba(23,23,23,.06);
    display: grid;
    gap: 12px;
}

/* Título plano (misma fuente en todo) */
.lg-heading {
    text-align: center;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #0f172a;
    margin: 4px 0 10px;
    font-size: 15px;
}

/* Campos */
.lg-field {
    position: relative;
    display: grid
}

    .lg-field i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 18px;
    }

    .lg-field input {
        height: 44px;
        padding: 10px 12px 10px 40px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #111827;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
    }

        .lg-field input::placeholder {
            color: #94a3b8
        }

        .lg-field input:hover {
            border-color: #dbe3fd
        }

        .lg-field input:focus {
            border-color: #c7d2fe;
            box-shadow: var(--ring);
        }

/* Autofill (Chrome/Edge) */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827;
}

/* Botón */
.lg-btn {
    margin: 8px auto 0;
    width: 200px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .2px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--brandA), var(--brandB));
    box-shadow: 0 12px 28px rgba(90,68,214,.28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

    .lg-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 36px rgba(90,68,214,.30)
    }

    .lg-btn:active {
        transform: translateY(0);
        box-shadow: 0 10px 24px rgba(90,68,214,.22)
    }

    .lg-btn:focus-visible {
        outline: 3px solid rgba(59,130,246,.45);
        outline-offset: 2px
    }

/* Mensaje de error */
.lg-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-weight: 600;
    font-size: .95rem;
}

/* ============== Reduce motion ============== */
@media (prefers-reduced-motion: reduce) {
    .lg-btn, .lg-field input {
        transition: none
    }
}

/* ============== Responsivo ============== */
@media (max-width:520px) {
    .login-card {
        width: 92vw
    }

    .brand {
        min-height: 160px;
        padding: 18px 20px
    }

    .lg-field input {
        height: 42px
    }

    .lg-btn {
        height: 42px;
        width: 190px
    }
}
#prod_rows td {
    padding-top: .4rem;
    padding-bottom: .4rem;
}

#prod_rows .fw-semibold, #prod_rows .small {
    line-height: 1.1;
}
