/* =====================================================================
   webauthn.css — Acceso con huella (WebAuthn).
   ---------------------------------------------------------------------
   Cubre el boton de /login y del modal de inactividad, y el panel de
   dispositivos de /usuario/profile.
   ===================================================================== */

/* ─── Boton "Entrar con huella" ─────────────────────────────────────── */
.webauthn-wrap {
    margin-top: .25rem;
}

.webauthn-separador {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0 1rem;
    color: #8898aa;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.webauthn-separador::before,
.webauthn-separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, .08);
}

.webauthn-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #fff;
    color: #32325d;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.webauthn-boton i {
    font-size: 1.15rem;
    color: #0288d1;
}
.webauthn-boton:hover:not(:disabled) {
    border-color: #0288d1;
    box-shadow: 0 4px 12px rgba(2, 136, 209, .18);
    transform: translateY(-1px);
}
.webauthn-boton:disabled {
    opacity: .7;
    cursor: default;
}

/* ─── Panel de dispositivos en "Mi perfil" ──────────────────────────── */
.webauthn-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
}
.webauthn-item + .webauthn-item {
    margin-top: .5rem;
}

.webauthn-item-icono {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(2, 136, 209, .1);
    color: #0288d1;
    font-size: 1.1rem;
}

.webauthn-item-datos {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.webauthn-item-datos strong {
    color: #32325d;
    font-size: .9rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.webauthn-item-datos small {
    color: #8898aa;
    font-size: .75rem;
}

.webauthn-vacio {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1.25rem;
    border: 1px dashed #dee2e6;
    border-radius: 10px;
    color: #8898aa;
    font-size: .85rem;
}
.webauthn-vacio i {
    font-size: 1.4rem;
    color: #adb5bd;
}

.webauthn-nota {
    margin-top: .75rem;
    color: #8898aa;
    font-size: .78rem;
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .webauthn-item {
        padding: .6rem;
    }
    .webauthn-item-datos small {
        font-size: .7rem;
    }
}
