:root {
    --mayo-azul: #123b63;
    --mayo-azul-claro: #1f6da1;
    --mayo-celeste: #eaf5fb;
    --mayo-borde: #d9e5ed;
    --mayo-texto: #253746;
    --mayo-suave: #6e7f8b;
    --mayo-fondo: #f3f7fa;
    --mayo-blanco: #ffffff;
    --mayo-verde: #2f9661;
    --mayo-rojo: #c93d3d;
    --mayo-sombra: 0 10px 28px rgba(23, 53, 78, 0.09);
}

body.pantalla-auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--mayo-azul) 0%, var(--mayo-azul-claro) 100%);
    font-family: 'Poppins', Arial, sans-serif;
}

.auth-tarjeta {
    width: 100%;
    max-width: 380px;
    background: var(--mayo-blanco);
    border-radius: 14px;
    box-shadow: var(--mayo-sombra);
    padding: 2.4rem 2.2rem;
    margin: 1rem;
}

.auth-logo {
    display: block;
    max-width: 160px;
    margin: 0 auto 1.2rem;
}

.auth-tarjeta h1 {
    font-size: 1.3rem;
    color: var(--mayo-azul);
    text-align: center;
    margin: 0 0 .3rem;
}

.auth-subtitulo {
    text-align: center;
    color: var(--mayo-suave);
    font-size: .85rem;
    margin: 0 0 1.6rem;
}

.auth-campo {
    margin-bottom: 1.1rem;
}

.auth-campo label {
    display: block;
    font-size: .82rem;
    color: var(--mayo-texto);
    margin-bottom: .35rem;
    font-weight: 600;
}

.auth-campo input {
    width: 100%;
    box-sizing: border-box;
    padding: .65rem .8rem;
    border: 1px solid var(--mayo-borde);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--mayo-texto);
    background: var(--mayo-fondo);
}

.auth-campo input:focus {
    outline: none;
    border-color: var(--mayo-azul-claro);
    background: var(--mayo-blanco);
}

.auth-boton {
    width: 100%;
    padding: .75rem;
    border: none;
    border-radius: 8px;
    background: var(--mayo-azul);
    color: var(--mayo-blanco);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s ease;
}

.auth-boton:hover {
    background: var(--mayo-azul-claro);
}

.auth-error {
    background: #fdecec;
    border: 1px solid var(--mayo-rojo);
    color: var(--mayo-rojo);
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .85rem;
    margin-bottom: 1.1rem;
}

.auth-exito {
    background: #eaf7ef;
    border: 1px solid var(--mayo-verde);
    color: var(--mayo-verde);
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .85rem;
    margin-bottom: 1.1rem;
}

.auth-pie {
    text-align: center;
    margin-top: 1.4rem;
    font-size: .78rem;
    color: var(--mayo-suave);
}

/* Panel de gestión de usuarios */

.usuarios-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.2rem;
}

.usuarios-tabla-wrap {
    overflow-x: auto;
}

table.tabla-usuarios {
    width: 100%;
    border-collapse: collapse;
    background: var(--mayo-blanco);
}

table.tabla-usuarios th,
table.tabla-usuarios td {
    padding: .65rem .8rem;
    border-bottom: 1px solid var(--mayo-borde);
    text-align: left;
    font-size: .88rem;
    color: var(--mayo-texto);
}

table.tabla-usuarios th {
    background: var(--mayo-celeste);
    color: var(--mayo-azul);
    font-weight: 600;
}

.etiqueta-rol {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
}

.etiqueta-rol-admin {
    background: #fdf1e0;
    color: var(--mayo-azul);
}

.etiqueta-rol-usuario {
    background: var(--mayo-celeste);
    color: var(--mayo-azul-claro);
}

.etiqueta-estado-activo {
    color: var(--mayo-verde);
    font-weight: 600;
}

.etiqueta-estado-inactivo {
    color: var(--mayo-suave);
    font-weight: 600;
}

.form-usuario {
    background: var(--mayo-blanco);
    border: 1px solid var(--mayo-borde);
    border-radius: 12px;
    padding: 1.4rem;
    max-width: 480px;
    margin-bottom: 1.6rem;
}

.form-usuario .auth-campo select {
    width: 100%;
    box-sizing: border-box;
    padding: .6rem .8rem;
    border: 1px solid var(--mayo-borde);
    border-radius: 8px;
    background: var(--mayo-fondo);
    color: var(--mayo-texto);
}

.acciones-fila {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.boton-mini {
    padding: .35rem .7rem;
    border-radius: 6px;
    font-size: .78rem;
    border: 1px solid var(--mayo-borde);
    background: var(--mayo-fondo);
    color: var(--mayo-texto);
    cursor: pointer;
    text-decoration: none;
}

.boton-mini-peligro {
    border-color: var(--mayo-rojo);
    color: var(--mayo-rojo);
}
