/* --- 1. CONFIGURACIÓN DE FUENTE Y COLORES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --color-vino: #5F0615;
    --color-vino-dark: #40040e;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #000000;
    margin: 0;
}

/* --- 2. LOGIN: CORRECCIÓN DE ALINEACIÓN VERTICAL --- */
.bg-login {
    background: linear-gradient(135deg, #231F20 0%, #40040e 100%);
    min-height: 100vh;
}

/* Forzamos que el contenedor sea una columna vertical estricta */
.login-container {
    display: flex !important;
    flex-direction: column !important; /* LAYROD arriba, Credenciales abajo */
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
}

/* La tarjeta donde están los inputs */
.login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-top: 20px; /* Separación del logo LAYROD */
}

/* Estilo para el logo/texto LAYROD arriba de la tarjeta */
.login-brand {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Inputs del login (letras blancas) */
.bg-login .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 10px;
}

/* --- 3. VISIBILIDAD DEL PORTAL (LETRAS NEGRAS) --- */
body:not(.bg-login) .form-control,
body:not(.bg-login) input,
body:not(.bg-login) td,
body:not(.bg-login) label {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
    border: 1px solid #ccc !important;
}

#res_clientes, #res_productos {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    z-index: 9999;
    border: 2px solid var(--color-vino);
}