/* ── OTP6 · campo de código de autenticador en modo 6 dígitos (login 2FA) ──
   La entrada real (name=code, con su pattern/maxlength/autocomplete) queda
   invisible cubriendo las6 casillas; el JS espelja los dígitos y marca la
   casilla activa. Estilo Sonoma: casillas redondeadas con hairline, anillo
   azul de foco y spring en los cambios de estado. */
.otp6 {
    position: relative;
    width: 100%;
}
.otp6-box {
    display: flex;
    justify-content: center;
    gap: clamp(4px, 1.5vw, 8px);
    pointer-events: none;
}
.otp6-box span {
    flex: 1 1 0;
    min-width: 0;
    max-width: 46px;
    height: clamp(44px, 12vw, 56px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
    color: inherit;
    transition:
        border-color 0.2s cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 0.2s cubic-bezier(0.32, 0.72, 0, 1),
        background-color 0.2s ease,
        transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.otp6-box span.is-filled {
    background: rgba(0, 122, 255, 0.08);
    transform: translateY(-1px);
}
.otp6-box span.is-active {
    border-color: #007aff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 3px rgba(0, 122, 255, 0.25);
    transform: translateY(-2px);
}
.otp6-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    text-align: center;
    font-size: 1.5rem;
    z-index: 1;
    cursor: text;
}
.otp6-input:focus {
    outline: none;
}
.otp6.is-submitting .otp6-box span {
    opacity: .62;
}
.otp6.is-submitting .otp6-box span.is-active {
    border-color: #007aff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 3px rgba(0, 122, 255, 0.25);
}
[data-bs-theme="dark"] .otp6-box span {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(44, 44, 46, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .otp6-box span.is-filled {
    background: rgba(10, 132, 255, 0.18);
}
[data-bs-theme="dark"] .otp6-box span.is-active {
    border-color: #0a84ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(10, 132, 255, 0.3);
}
@media (prefers-reduced-motion: reduce) {
    .otp6-box span {
        transition: none;
    }
}
