/* Centered Modal Pop-up Animation & Styles */
@keyframes authPopUp {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.otp-boxes-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    direction: ltr !important;
    margin: 16px 0 12px;
}

.otp-digit-box, .otp-reset-box {
    width: 48px;
    height: 56px;
    background: rgba(30, 41, 59, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    font-family: monospace, Tahoma, sans-serif;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    -webkit-appearance: none;
    box-sizing: border-box;
}

@media (max-width: 420px) {
    .otp-boxes-container {
        gap: 5px;
    }
    .otp-digit-box, .otp-reset-box {
        width: 40px;
        height: 50px;
        font-size: 1.35rem;
        border-radius: 10px;
    }
}

.otp-digit-box:focus, .otp-reset-box:focus {
    border-color: #6366f1;
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.otp-digit-box.filled, .otp-reset-box.filled {
    border-color: #10b981;
    color: #34d399;
}

.otp-digit-box.error, .otp-reset-box.error {
    border-color: #ef4444 !important;
    color: #f87171 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
}

.otp-boxes-container.shake {
    animation: otpBoxShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes otpBoxShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}
