.otp-input-wrap {
    margin-bottom: 8px;
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0 8px;
    padding: 0 4px;
}

.otp-digit {
    width: 42px;
    max-width: 14vw;
    height: 52px;
    padding: 0;
    border: none;
    border-bottom: 2px solid #cbd5e1;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 26px;
    font-weight: 600;
    line-height: 52px;
    text-align: center;
    caret-color: #2563eb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -moz-appearance: textfield;
}

.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-digit:focus {
    outline: none;
    border-bottom-color: #2563eb;
    box-shadow: 0 2px 0 0 #2563eb;
}

.otp-digit.filled {
    border-bottom-color: #111827;
}

.otp-digit.error {
    border-bottom-color: #ef4444;
    animation: otp-shake 0.35s ease;
}

@keyframes otp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@media (max-width: 380px) {
    .otp-input-group {
        gap: 6px;
    }
    .otp-digit {
        width: 36px;
        height: 48px;
        font-size: 22px;
        line-height: 48px;
    }
}
