* { 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 */ } .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.5rem; 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; } .form-group { margin-bottom: 18px; } label { display: block; margin-bottom: 7px; font-weight: 500; color: #475569; } input[type="email"], input[type="text"], input[type="password"] { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1em; background: #f8fafc; transition: border 0.2s; } input:focus { border-color: #17cbb3; outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.15); } .btn { width: 100%; padding: 14px; background: #17cbb3; color: #fff; border: none; border-radius: 10px; font-weight: 600; font-size: 1.05rem; cursor: pointer; margin-top: 10px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(23, 203, 179, 0.3); position: relative; overflow: hidden; text-decoration: none; } .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(23, 203, 179, 0.35); background: #14b09e; } .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; } .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); } } .text-center { text-align: center; } .back-link { display: block; text-align: center; margin-top: 18px; color: #17cbb3; text-decoration: none; font-weight: 500; border-radius: 8px; transition: all 0.3s; padding: 10px; } .back-link:hover { background: rgba(23, 203, 179, 0.08); text-decoration: underline; } .back-link.disabled { color: #a0aec0 !important; cursor: not-allowed !important; pointer-events: none !important; } #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; } } /* OTP digit group style */ .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; } .digit-group input:focus { outline: none; border-color: #17cbb3; box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.15); background: #fff; } .hidden-input { position: absolute; opacity: 0; pointer-events: none; } @media (max-width: 400px) { .container { padding: 28px 16px; } h2 { font-size: 1.2rem; margin-bottom: 18px; } .digit-group input { width: 32px; height: 40px; font-size: 1rem; } }