/* front/assets/css/otp_input.css */
/* Estilos modernos Apple para caixas de código OTP (6 dígitos) com suporte para colar e responsividade */

.otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0;
}

@media (min-width: 480px) {
    .otp-wrapper {
        gap: 12px;
    }
}

.otp-box {
    width: 46px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, monospace;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    caret-color: var(--primary);
}

@media (min-width: 480px) {
    .otp-box {
        width: 52px;
        height: 62px;
        font-size: 1.7rem;
    }
}

.otp-box:focus {
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(215, 87, 18, 0.18);
    transform: translateY(-2px);
}

.otp-box.filled {
    border-color: rgba(215, 87, 18, 0.5);
    background: var(--bg-secondary);
}

.otp-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 179, 0, 0.1);
    color: #ff9f0a;
    font-size: 0.825rem;
    font-weight: 600;
}

.otp-timer-badge.expired {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

.btn-resend-otp {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.btn-resend-otp:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: none;
}

