/*
    Pantalla de seguridad de la cuenta.
    Neutra a proposito: la colocan los tres paneles, cada uno con su tema, asi
    que solo se ocupa del ritmo y del QR.
*/

.bp-security__block {
    margin-bottom: 2.5rem;
    max-width: 30rem;
}

.bp-security__block h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.bp-security__steps {
    margin: 0 0 1.25rem 1.1rem;
    padding: 0;
    line-height: 1.6;
}

/*
    Tamaño fijo y fondo blanco: el QR se lee por contraste, y sobre un tema
    oscuro el PNG transparente seria ilegible.
*/
.bp-security__qr {
    display: block;
    width: 200px;
    height: 200px;
    padding: 10px;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid #d5d5d5;
}

.bp-security__secret {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* La clave se teclea a mano: hay que distinguir el cero de la O. */
.bp-security__secret code {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.35rem 0.6rem;
    background: #f0f0f0;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    word-break: break-all;
}

/* ===================================================== seguridad en ventana */

/*
    Ventana propia y no la del tema: los tres sitios traen temas distintos y
    asi se comporta igual en todos, sin JavaScript de por medio.
*/

.bp-seguridad__abrir {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border: 1px solid #d0d0d6;
    border-radius: .3rem;
    background: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

.bp-seguridad__abrir:hover,
.bp-seguridad__abrir:focus-visible {
    background: #f4f4f7;
    border-color: #b9b9c2;
}

.bp-seguridad__fondo {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, .5);
    /* Sin esto el navegador dibuja un borde de foco alrededor de toda la capa. */
    outline: none;
}

.bp-seguridad__ventana {
    width: 100%;
    max-width: 34rem;
    margin: auto;
    background: #fff;
    border-radius: .4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
}

.bp-seguridad__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e7e7e7;
}

.bp-seguridad__cabecera h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.bp-seguridad__cerrar {
    border: 0;
    background: none;
    font-size: 1.1rem;
    line-height: 1;
    color: #8b8b8b;
    cursor: pointer;
    padding: .25rem .5rem;
}

.bp-seguridad__cerrar:hover {
    color: #333;
}

.bp-seguridad__cuerpo {
    padding: 1.5rem;
}

/*
    Dentro de la ventana el primer bloque ya lleva el titulo de la cabecera
    encima, asi que su margen superior sobra.
*/
.bp-seguridad__cuerpo .bp-security__block:first-child {
    margin-top: 0;
}
