Subscription Form - 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>Subscription Form</title> <style> body { font-family: 'Arial', sans-serif; background: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b); height: 100vh; display: flex; justify-content: center; align-items: center; margin: 0; } .form-container { background: rgba(255, 255, 255, 0.9); padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 350px; position: relative; } .form-container::before, .form-container::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 10px; top: 0; left: 0; animation: glowing 1.5s infinite; } .form-container::before { filter: blur(8px); } .form-container::after { filter: blur(4px); } @keyframes glowing { 0% { box-shadow: 0 0 5px #3a1c71, 0 0 10px #3a1c71, 0 0 20px #3a1c71, 0 0 40px #d76d77, 0 0 80px #d76d77; } 100% { box-shadow: 0 0 5px #d76d77, 0 0 10px #d76d77, 0 0 20px #d76d77, 0 0 40px #3a1c71, 0 0 80px #3a1c71; } } fieldset { border: 2px solid #3a1c71; border-radius: 10px; padding: 20px; position: relative; background: #fff; z-index: 1; } legend { font-size: 1.5em; color: #d76d77; font-weight: bold; } .input-group { margin-bottom: 15px; position: relative; } .input-group input { width: 92%; padding: 10px; border: 2px solid #3a1c71; border-radius: 5px; outline: none; transition: border-color 0.3s; } .input-group input:focus { border-color: #d76d77; } .form-button { background: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b); border: none; padding: 10px 20px; border-radius: 5px; color: #fff; font-size: 1em; cursor: pointer; transition: background 0.3s; width: 100%; text-align: center; } .form-button:hover { background: linear-gradient(to right, #ffaf7b, #d76d77, #3a1c71); } </style> </head> <body> <div class="form-container"> <fieldset> <legend>Subscription Form</legend> <div class="input-group"> <input type="text" id="fullname" placeholder="Full Name"> </div> <div class="input-group"> <input type="email" id="email" placeholder="Email"> </div> <button class="form-button">Subscribe</button> </fieldset> </div> </body> </html>