-
OTP Verification Form
HTML
CSS
JavaScript
OTP Verification
Enter the 6-digit code sent to your mobile
Verify
Didn't receive code?
Resend
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #4e73df, #1cc88a); } .container { background: #fff; padding: 40px; border-radius: 12px; width: 350px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); } .container h2 { margin-bottom: 10px; color: #333; } .container p { font-size: 14px; color: #777; margin-bottom: 25px; } .otp-input { display: flex; justify-content: space-between; margin-bottom: 25px; } .otp-input input { width: 45px; height: 50px; border: 2px solid #ddd; border-radius: 8px; text-align: center; font-size: 20px; transition: 0.3s; } .otp-input input:focus { border-color: #4e73df; outline: none; } button { width: 100%; padding: 12px; border: none; background: #4e73df; color: #fff; font-size: 16px; border-radius: 8px; cursor: pointer; transition: 0.3s; } button:hover { background: #2e59d9; } .resend { margin-top: 15px; font-size: 13px; } .resend a { color: #4e73df; text-decoration: none; } .resend a:hover { text-decoration: underline; }
Live Preview