.otpInput {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    box-sizing: border-box;
}

.otpInput .otpInputBox {
    width: 50px;
    height: 55px;
    min-width: 50px;
    flex-shrink: 0;
    border: 2px solid #3f4656;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
}

.otpInput .otpInputBox:focus-within {
    border-color: #01eff9;
    box-shadow: 0 0 10px rgba(1, 239, 249, 0.3);
}

.otpInput .otpInputBox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otpInput .otpDigit {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    caret-color: #01eff9;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
}

.otpInput .otpDigit:disabled {
    cursor: not-allowed;
}

.otpInput .otpDigit::placeholder {
    color: #3f4656;
}

/* Error state */
.otpInput.error .otpInputBox {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* Success state */
.otpInput.success .otpInputBox {
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 420px) {
    .otpInput {
        gap: 8px;
    }

    .otpInput .otpInputBox {
        width: 45px;
        height: 50px;
        min-width: 45px;
    }

    .otpInput .otpDigit {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .otpInput {
        gap: 5px;
    }

    .otpInput .otpInputBox {
        width: 40px;
        height: 45px;
        min-width: 40px;
    }

    .otpInput .otpDigit {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .otpInput {
        gap: 4px;
    }

    .otpInput .otpInputBox {
        width: 36px;
        height: 42px;
        min-width: 36px;
    }

    .otpInput .otpDigit {
        font-size: 16px;
    }
}

/* iOS Text Centering Fix */
.iphone .otpInput .otpDigit {
    line-height: 55px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 420px) {
    .iphone .otpInput .otpDigit {
        line-height: 50px;
    }
}

@media (max-width: 360px) {
    .iphone .otpInput .otpDigit {
        line-height: 45px;
    }
}

@media (max-width: 320px) {
    .iphone .otpInput .otpDigit {
        line-height: 42px;
    }
}
