/* OTP Input Styling */
.otp-input-container {
    max-width: 360px;
    margin: 0 auto;
}

.otp-input {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    caret-color: var(--primary, #006d86);
    letter-spacing: 0;
    padding: 0;
}

/* Focus State */
.otp-input:focus {
    border-color: var(--primary, #006d86);
    box-shadow: 0 0 0 0.25rem var(--focus-box-shadow, rgba(130, 213, 236, 0.37));
    outline: 0;
}

/* Filled State */
.otp-input.filled {
    background-color: #f8f9fa;
    border-color: var(--primary, #006d86);
}

/* Error State */
.otp-input.border-danger {
    border-color: #dc3545;
}

.otp-input.border-danger:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Disabled State */
.otp-input:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Remove number input spinners */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input[type=number] {
    -moz-appearance: textfield;
}

/* Responsive Design */
@media (max-width: 576px) {
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .otp-input-container {
        gap: 0.375rem !important;
        max-width: 300px;
    }
}

@media (max-width: 400px) {
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .otp-input-container {
        gap: 0.25rem !important;
        max-width: 260px;
    }
}

/* Animation for auto-fill */
@keyframes fillAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.otp-input.auto-filled {
    animation: fillAnimation 0.3s ease-in-out;
}
