/* loginvhaofood.css - Estilos específicos para la página de acceso */

:root {
    --primary-color: #4b2fbf;
    --primary-hover: #3a22a1;
    --gradient-bg: linear-gradient(180deg, #6b3be0 0%, #4b2fbf 100%);
    --bg-light: #f8f9fc;
    --text-dark: #2d2d2d;
    --text-muted: #666;
    --error-bg: #fff5f5;
    --error-border: #f5c2c2;
    --error-text: #9b1c1c;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Contenedor principal del formulario */
.vh-login {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Logo y título */
.vh-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 20px;
}

.vh-logo svg {
    width: 45px;
    height: 45px;
}

.vh-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.vh-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Mensaje de error */
.vh-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none; /* Se activa vía JS */
    animation: fadeIn 0.3s ease;
}

/* Campos del formulario */
.field-wrap {
    position: relative;
    margin-bottom: 16px;
    text-align: left;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    margin-left: 4px;
}

.vh-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
    border: 1.5px solid #eee;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.vh-field:focus-within {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(75, 47, 191, 0.1);
}

.vh-field input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
}

.vh-field input::placeholder {
    color: #bbb;
}

.vh-field .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #888;
    transition: color 0.2s ease;
}

.vh-field:focus-within .icon {
    color: var(--primary-color);
}

/* Botón de acción principal */
.vh-actions {
    margin-top: 24px;
}

.vh-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-bg);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(75, 47, 191, 0.2);
}

.vh-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(75, 47, 191, 0.3);
    filter: brightness(1.1);
}

.vh-continue:active {
    transform: translateY(0);
}

.vh-continue:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Spinner de carga */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* Tooltip info */
.info-tooltip {
    display: none;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 100;
    width: 240px;
    pointer-events: none;
}

/* Animaciones */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .vh-login {
        margin: 20px 16px;
        padding: 24px 20px;
    }
    
    .vh-title {
        font-size: 1.5rem;
    }
    
    .vh-logo {
        width: 70px;
        height: 70px;
    }
}