-
Circle electric login form
HTML
CSS
JavaScript
⚡ Login
Sign In
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", sans-serif; } body { height: 100vh; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle at center, #0a0a1f, #050510); overflow: hidden; } /* Circle Wrapper */ .circle { position: relative; width: 360px; height: 360px; border-radius: 50%; display: flex; justify-content: center; align-items: center; animation: float 5s ease-in-out infinite; } /* Electric rotating ring */ .circle::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient( from 0deg, #00f0ff, #0066ff, #00ffff, #0066ff, #00f0ff ); animation: spin 3s linear infinite; z-index: -2; } /* Glow layer */ .circle::after { content: ""; position: absolute; inset: -20px; border-radius: 50%; background: conic-gradient( #00f0ff, #0066ff, #00ffff ); filter: blur(35px); opacity: 0.6; z-index: -3; } /* Inner mask (creates border thickness) */ .mask { position: absolute; inset: 6px; border-radius: 50%; background: #050510; z-index: -1; } /* Login Card */ .card { width: 280px; padding: 30px; border-radius: 40px; background: rgba(15,15,35,0.85); backdrop-filter: blur(12px); text-align: center; color: #fff; } /* Title */ h2 { margin-bottom: 20px; color: #00eaff; text-shadow: 0 0 12px #00eaff; } /* Inputs */ .input-box { margin-bottom: 15px; } .input-box input { width: 100%; padding: 11px; border: none; border-radius: 8px; outline: none; background: rgba(255,255,255,0.05); color: white; transition: 0.3s; } .input-box input:focus { box-shadow: 0 0 10px #00eaff; } /* Button */ button { width: 100%; padding: 11px; border: none; border-radius: 8px; background: linear-gradient(90deg, #00eaff, #0066ff); color: white; cursor: pointer; font-size: 15px; transition: 0.3s; } button:hover { transform: scale(1.06); box-shadow: 0 0 18px #00eaff; } /* Animations */ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } } /* Hover = stronger electric */ .circle:hover::before { animation-duration: 1s; filter: brightness(1.6); } .circle:hover::after { opacity: 0.9; }
Live Preview