Trang chủ
Form ui
Save
Settings
Sign Up
Log In
Save
Settings
HTML
Copy
<div class="login"> <h1 class="heading">Welcome Back, Easy Template</h1> <p class="desc">Continue with Google or enter your details</p> <a href="#" class="btn-google"> <!-- Google SVG --> Login with Google </a> <div class="divider"> <div class="line"></div> <p class="text">or</p> <div class="line"></div> </div> <form class="form" autocomplete="off"> <div class="group"> <label for="email">Email *</label> <input type="text" id="email" class="input" placeholder="Email" /> </div> <div class="group"> <label for="password">Password *</label> <input type="password" id="password" class="input" placeholder="Password" /> </div> <div class="meta"> <div class="remember"> <input type="checkbox" id="remember-account" /> <label for="remember-account">Remember for 30 days</label> </div> <a href="#" class="link">Forgot Password</a> </div> <button type="submit" class="btn">Login</button> </form> <div class="option"> Don’t have an account? <a href="#">Sign up for free</a> </div> </div>
CSS
Copy
.login { width: 100%; max-width: 500px; margin: auto; padding: 40px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); } /* Heading & Description */ .heading { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 4px; } .desc { color: #808191; font-size: 14px; text-align: center; font-weight: 500; } /* Google Button */ .btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; margin-top: 20px; font-weight: 500; color: #4b5264; transition: 0.25s linear; } /* Divider */ .divider { display: flex; align-items: center; margin: 20px 0; } .text { padding: 0 20px; font-size: 14px; font-weight: 500; color: #808191; } .line { height: 1px; flex: 1; background: #f1f1f3; } /* Form */ .form { display: flex; flex-direction: column; margin-bottom: 20px; } .group { margin-bottom: 20px; } .group label { font-size: 14px; font-weight: 500; } .input { width: 100%; padding: 15px 25px; border: 1px solid #cbd5e1; border-radius: 12px; outline: none; transition: 0.25s linear; } .input:focus { border-color: #1dc071; } /* Meta */ .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 14px; } .remember { display: flex; align-items: center; gap: 5px; } .link { font-weight: 500; text-decoration: underline; transition: 0.25s linear; } .link:hover { color: #1dc071; } /* Button */ .btn { display: inline-block; width: 100%; padding: 16px 40px; margin-top: 20px; font-size: 1.125rem; font-weight: 600; border-radius: 8px; color: #fff; background-color: #1dc071; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; } .btn::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #fff; opacity: 0.1; z-index: -1; transition: all 0.4s cubic-bezier(0.165,0.84,0.44,1); } .btn:hover::before { width: 100%; } /* Option */ .option { text-align: center; font-size: 14px; } .option a { font-weight: 500; text-decoration: underline; transition: 0.25s linear; } .option a:hover { color: #1dc071; }
JS
Copy