/* =========================================
   1. VARIABLES Y RESET (MODO DARK PRO)
   ========================================= */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.8); /* Transparencia estilo Glassmorphism */
    --accent-blue: #3b82f6;
    --accent-green: #10b981; /* Verde llamativo para Pedidos */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    
    --border-color: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative; /* Necesario para el logo de fondo */
}

/* =========================================
   2. LOGO DE FONDO CON OPACIDAD BAJA (PRO)
   ========================================= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* RUTA DEL LOGO */
    background-image: url('color/imagenes/LOGO NUEVO.png'); 
    background-size: cover; /* Escala para cubrir pantalla */
    background-position: center;
    background-repeat: no-repeat;
    
    /* BAJA OPACIDAD: TIPO MARCA DE AGUA */
    opacity: 0.08; 
    
    z-index: -1; /* Se pone DETRÁS de todo el contenido */
}

/* =========================================
   3. CONTENEDOR PRINCIPAL
   ========================================= */
.login-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-header {
    text-align: center;
    margin-bottom: 5px;
}

/* Título estilo neón suave */
/* Título estilo neón suave */
.login-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    
    /* Agrega esta línea para quitar la advertencia: */
    background-clip: text;
    
    /* Propiedades necesarias para el efecto: */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.login-header p {
    color: var(--text-muted);
    margin: 3px 0 0;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========================================
   4. FORMULARIO ESTILO GLASSMORPHISM
   ========================================= */
.login-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 24px;
    backdrop-filter: blur(10px); /* Desenfoque del logo de fondo */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.input-group { margin-bottom: 20px; }

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 15px 18px; /* Grande para dedos */
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

/* =========================================
   5. BOTONES Y ENLACES (CÓMO PEDISTE)
   ========================================= */

/* SEPARADOR visual 'o' */
.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.separator::before, .separator::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
    background: rgba(255,255,255,0.1);
}
.separator::before { left: 0; }
.separator::after { right: 0; }

/* 1. Botón Login (Azul) */
.btn-login {
    width: 100%;
    padding: 16px;
    background: rgba(59, 130, 246, 0.2); /* Azul translúcido */
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}
.btn-login:hover { background: rgba(59, 130, 246, 0.3); color: white; }
.btn-login:active { transform: scale(0.98); }

/* 2. ZONA CLIENTES Y BOTÓN PEDIDOS (VERDE LLAMATIVO) */
.public-link-area {
    text-align: center;
    margin-top: 10px;
}
.public-link-area p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.95rem; }

/* EL BOTÓN QUE PEDISTE GRANDE Y LLAMATIVO */
.btn-public-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px; /* Muy grande visualmente */
    
    /* Verde neón corporativo */
    background: var(--accent-green);
    color: #064e3b; /* Texto oscuro para contraste */
    
    text-decoration: none; /* Make it look like a button */
    border-radius: 14px;
    font-size: 1.1rem; /* Prominente */
    font-weight: 800; /* Extra bold */
    
    letter-spacing: 0.5px;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); /* Resplandor verde */
}

.btn-public-order:hover { 
    background: #059669; /* Verde más oscuro */
    color: white;
}
.btn-public-order:active { transform: scale(0.97); }

/* =========================================
   6. MODAL DE ERROR
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 360px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.icon-error { font-size: 3.5rem; margin-bottom: 15px; }
.modal-content h3 { margin: 0 0 10px; color: var(--danger); font-size: 1.3rem; }
.modal-content p { color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; font-size: 1rem; }

.modal-content button {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
}
.modal-content button:hover { background: rgba(255,255,255,0.2); }