/* Login via WhatsApp — estilos isolados (prefixo .wa-login / .btn-whatsapp). */

.wa-login {
    margin-top: 8px;
    text-align: center;
}

.wa-login__or {
    position: relative;
    margin: 10px 0;
    color: #9aa3af;
    font-size: 13px;
}
.wa-login__or::before,
.wa-login__or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2e5ea;
}
.wa-login__or::before { left: 0; }
.wa-login__or::after  { right: 0; }
.wa-login__or span { padding: 0 8px; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.btn-whatsapp:hover    { background: #1ebe5b; color: #fff; text-decoration: none; }
.btn-whatsapp:disabled { opacity: .6; cursor: default; }
.btn-whatsapp .fa      { font-size: 18px; }

/* Modo WhatsApp: o card mostra so isto (form escondido). */
.wa-login__box {
    text-align: center;
}
.wa-login__title {
    margin: 4px 0 16px;
    font-size: 17px;
    font-weight: 600;
    color: #128c4a;
}
.wa-login__title .fa { margin-right: 6px; }

.wa-login__qr {
    display: inline-block;
    min-height: 60px;
}
.wa-login__qr img,
.wa-login__qr canvas {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.wa-login__msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    margin: 14px auto;
    color: #5b6471;
    font-size: 14px;
    line-height: 1.45;
}
/* Spinner pequeno do status (pra mostrar que está aguardando/carregando). */
.wa-msg-spin {
    display: inline-block; box-sizing: border-box; flex: 0 0 auto;
    width: 13px; height: 13px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: wa-msg-rot .6s linear infinite;
}
@keyframes wa-msg-rot { to { transform: rotate(360deg); } }
.wa-login__open { margin-bottom: 4px; }

.wa-login__back {
    display: block;
    margin: 14px auto 0;
    padding: 6px;
    background: none;
    border: 0;
    color: #8a93a0;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.wa-login__back:hover { color: #5b6471; }

/* Passo a passo: QR + instruções lado a lado (desktop). Compacto pra caber na
   altura fixa do card; empilha no mobile (onde o QR fica escondido pelo JS). */
/* Empilhado e com folga: QR em cima (grande), passos em largura cheia embaixo.
   A altura do card cresce sozinha (height é content-driven). */
.wa-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 4px 0 14px;
    text-align: left;
}
.wa-flow__qr { flex: 0 0 auto; }
.wa-flow__steps { width: 100%; }

.wa-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 11px;
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}
.wa-step__n {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font: 700 12px/21px Roboto, sans-serif;
    text-align: center;
}
.wa-step__t b { color: #111827; }

.wa-code {
    margin: 0 0 11px 31px;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #b7ebca;
    border-radius: 8px;
    font: 700 16px/1.2 "Roboto Mono", Menlo, Consolas, monospace;
    letter-spacing: 1px;
    color: #128c4a;
    text-align: center;
    word-break: break-word;
}

/* Card mais largo SÓ durante o fluxo WhatsApp (passo a passo precisa de espaço).
   min-width cresce os tenants menores (ex: P=280) e respeita os já maiores; por
   isso "prevê" o adidas e qualquer config. Só no desktop (no mobile o card é fluido). */
@media (min-width: 600px) {
    .login-box.wa-ativo { min-width: 460px !important; }
}
