Elegant Styled 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 Styled 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(135deg, #b06ab3, #4568dc); font-family: 'Arial', sans-serif; } .signup-container { background: #fff; border-radius: 15px; box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); padding: 50px; max-width: 400px; width: 100%; text-align: center; position: relative; overflow: hidden; } .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: 10px; background: #f0f0f0; 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(135deg, #b06ab3, #4568dc); color: #fff; padding: 10px 25px; border: none; border-radius: 10px; cursor: pointer; font-size: 16px; transition: background 0.3s; } .signup-button:hover { background: linear-gradient(135deg, #4568dc, #b06ab3); } .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>