* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #f9fafb 0%, #edf1f7 100%); color: #334155; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; overflow: hidden; /* Tambahkan ini agar tidak bisa di scroll */ } /* Hilangkan box biru saat tap di mobile */ button, .btn, input, .digit-group input, a, .resend-link { -webkit-tap-highlight-color: transparent; } .container { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 35px 28px; position: relative; overflow: hidden; animation: fadeIn 0.6s ease-out forwards; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .container::before { content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: #17cbb3; border-radius: 16px 0 0 16px; } h2 { color: #17cbb3; text-align: center; margin-bottom: 24px; font-size: 1.75rem; font-weight: 600; position: relative; } h2::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background-color: #17cbb3; border-radius: 2px; } .otp-info { text-align: center; margin-bottom: 20px; font-size: 0.9rem; color: #64748b; padding: 0 5px; } .otp-info strong { word-break: break-all; } .digit-group { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; } .digit-group input { width: 40px; height: 50px; background-color: #f8fafc; border: 1px solid #e2e8f0; line-height: 50px; text-align: center; font-size: 1.2rem; font-weight: 500; border-radius: 8px; margin: 0 2px; transition: all 0.3s; } /* Mobile responsiveness for digit inputs */ @media (max-width: 400px) { .digit-group input { width: 36px; height: 45px; font-size: 1.1rem; margin: 0 1px; } .container { padding: 28px 20px; } h2 { font-size: 1.5rem; margin-bottom: 20px; } } @media (max-width: 340px) { .digit-group input { width: 30px; height: 40px; font-size: 1rem; } } .digit-group input:focus { outline: none; border-color: #17cbb3; box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.15); background: #fff; } .btn { width: 100%; padding: 14px; background: #17cbb3; color: #fff; border: none; border-radius: 10px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(23, 203, 179, 0.3); position: relative; overflow: hidden; } .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(23, 203, 179, 0.35); } .btn:active { transform: translateY(1px); } .btn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.4s ease-out; opacity: 0; } .btn:hover::after { transform: translate(-50%, -50%) scale(1); opacity: 1; } .alert { color: #e53e3e; background: #fff5f5; border-left: 4px solid #e53e3e; border-radius: 6px; padding: 14px; margin-bottom: 20px; animation: slideInDown 0.4s ease-out forwards; } .alert ul { margin-left: 20px; } .success { color: #2f855a; background: #f0fff4; border-left: 4px solid #2f855a; border-radius: 6px; padding: 14px; margin-bottom: 20px; animation: slideInDown 0.4s ease-out forwards; } @keyframes slideInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .resend-link { display: block; text-align: center; margin-top: 18px; color: #17cbb3; font-weight: 500; cursor: pointer; background: none; border: none; padding: 10px; width: 100%; border-radius: 8px; transition: all 0.3s; } .resend-link:hover:not([disabled]) { background: rgba(23, 203, 179, 0.08); } .resend-link[disabled] { color: #a0aec0; cursor: not-allowed; } #timer { text-align: center; color: #64748b; margin-top: 10px; font-size: 0.9rem; height: 20px; animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } } /* Hide original input but keep it for form submission */ .hidden-input { position: absolute; opacity: 0; pointer-events: none; }