Elegant Signup - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Elegant Signup</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> <style> body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(to right, #ff7e5f, #feb47b); font-family: 'Arial', sans-serif; } .signup-container { background: #fff; border-radius: 10px; box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); padding: 40px; max-width: 400px; width: 100%; text-align: center; position: relative; overflow: hidden; } .signup-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 400%; height: 400%; background: conic-gradient(from 180deg, #ff7e5f, #feb47b, #ff7e5f, #feb47b); animation: rotateBackground 6s linear infinite; z-index: -1; } @keyframes rotateBackground { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .signup-form { position: relative; z-index: 1; } .signup-form h2 { margin-bottom: 20px; font-size: 28px; color: #333; } .input-box { position: relative; margin-bottom: 20px; } .input-box input { width: 80%; height: 45px; padding-left: 5%; font-size: 16px; border: none; border-radius: 5px; background: #f5f5f5; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); } .input-box input:focus { outline: none; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); } .signup-button { display: inline-block; background: linear-gradient(to right, #ff7e5f, #feb47b); color: #fff; padding: 10px 25px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background 0.3s; } .signup-button:hover { background: linear-gradient(to right, #feb47b, #ff7e5f); } .signup-button i { margin-left: 10px; transition: transform 0.3s; } .signup-button:hover i { transform: translateX(5px); } </style> </head> <body> <div class="signup-container"> <form class="signup-form" id="signupForm"> <h2>Elegant Signup</h2> <div class="input-box"> <input type="text" placeholder="Username" required> </div> <div class="input-box"> <input type="email" placeholder="Email" required> </div> <div class="input-box"> <input type="password" placeholder="Password" required> </div> <button type="submit" class="signup-button">Sign Up <i class="fas fa-arrow-right"></i></button> </form> </div> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> <script> document.getElementById('signupForm').addEventListener('submit', function(event) { event.preventDefault(); Swal.fire({ icon: 'success', title: 'Signed Up Successfully!', text: 'Welcome to Elegant Signup!', showConfirmButton: false, timer: 2000 }); }); </script> </body> </html>