Prévisualisation
<div class="glf-container">
<div class="glf-login-box">
<form class="glf-form">
<div class="glf-logo"></div>
<span class="glf-header">Welcome Back!</span>
<input type="email" placeholder="Email" class="glf-input" />
<input type="password" placeholder="Password" class="glf-input" />
<button type="submit" class="glf-button glf-sign-in">Sign In</button>
<button class="glf-button glf-google-sign-in">
<svg class="glf-icon" viewBox="-3 0 262 262" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" fill="#000000">
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
<g id="SVGRepo_iconCarrier">
<path d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027" fill="#4285F4"></path>
<path d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1" fill="#34A853"></path>
<path d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782" fill="#FBBC05"></path>
<path d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251" fill="#EB4335"></path>
</g>
</svg>
<span class="glf-span">Sign in with Google</span>
</button>
<p class="glf-footer">
Don't have an account?
<a href="" class="glf-link">Sign up, it's free!</a>
<br />
<a href="" class="glf-link">Forgot password?</a>
</p>
</form>
</div>
</div>
/* ========== FORM 2: Glow Login Form (glf-) ========== */
.glf-container {
--form-width: 315px;
--aspect-ratio: 1.33;
--login-box-color: #272727;
--input-color: #3a3a3a;
--button-color: #373737;
--footer-color: rgba(255, 255, 255, 0.5);
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
background: var(--login-box-color);
border-radius: 24px;
width: calc(var(--form-width) + 1px);
height: calc(var(--form-width) * var(--aspect-ratio) + 1px);
z-index: 8;
box-shadow:
0 4px 8px rgba(0, 0, 0, 0.2),
0 8px 16px rgba(0, 0, 0, 0.2),
0 0 8px rgba(255, 255, 255, 0.1),
0 0 16px rgba(255, 255, 255, 0.08);
}
.glf-container::before {
content: "";
position: absolute;
inset: -50px;
z-index: -2;
background: conic-gradient(
from 45deg,
transparent 75%,
#fff,
transparent 100%
);
animation: glf-spin 4s ease-in-out infinite;
}
@keyframes glf-spin {
100% {
transform: rotate(360deg);
}
}
.glf-login-box {
background: var(--login-box-color);
border-radius: 24px;
padding: 28px;
width: var(--form-width);
height: calc(var(--form-width) * var(--aspect-ratio));
position: absolute;
z-index: 10;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
box-shadow:
inset 0px 40px 60px -8px rgba(255, 255, 255, 0.12),
inset 4px 0 12px -6px rgba(255, 255, 255, 0.12),
inset 0px 0 12px -4px rgba(255, 255, 255, 0.12);
}
.glf-form {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 10px;
}
.glf-logo {
width: 65px;
height: 65px;
background: linear-gradient(
135deg,
rgba(255, 255, 255, 0.2),
rgba(0, 0, 0, 0.2)
);
box-shadow:
8px 8px 16px rgba(0, 0, 0, 0.2),
-8px -8px 16px rgba(255, 255, 255, 0.06);
border-radius: 20px;
border: 2px solid #fff;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.glf-logo::before {
content: "";
position: absolute;
bottom: 10px;
width: 50%;
height: 20%;
border-top-left-radius: 40px;
border-top-right-radius: 40px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
border: 2.5px solid #fff;
}
.glf-logo::after {
content: "";
position: absolute;
top: 10px;
width: 30%;
height: 30%;
border-radius: 50%;
border: 2.5px solid #fff;
}
.glf-header {
width: 100%;
text-align: center;
font-size: 24px;
font-weight: bold;
padding: 6px;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
.glf-input {
width: 100%;
padding: 10px;
border: none;
border-radius: 12px;
background: var(--input-color);
color: white;
outline: none;
font-size: 14px;
}
.glf-input:focus {
border: 1px solid #fff;
}
.glf-button {
width: 100%;
height: 40px;
border: none;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
display: grid;
place-content: center;
gap: 10px;
background: var(--button-color);
color: white;
transition: 0.3s;
box-shadow:
inset 0px 3px 6px -4px rgba(255, 255, 255, 0.6),
inset 0px -3px 6px -2px rgba(0, 0, 0, 0.8);
}
.glf-sign-in {
margin-top: 5px;
}
.glf-google-sign-in {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
.glf-button:hover {
background: rgba(255, 255, 255, 0.25);
box-shadow:
inset 0px 3px 6px rgba(255, 255, 255, 0.6),
inset 0px -3px 6px rgba(0, 0, 0, 0.8),
0px 0px 8px rgba(255, 255, 255, 0.05);
}
.glf-icon {
height: 16px;
}
.glf-footer {
width: 100%;
text-align: left;
color: var(--footer-color);
font-size: 12px;
}
.glf-footer .glf-link {
position: relative;
color: var(--footer-color);
font-weight: 600;
text-decoration: none;
transition: color 0.3s ease;
}
.glf-footer .glf-link::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 0;
border-radius: 6px;
height: 1px;
background: currentColor;
transition: width 0.3s ease;
}
.glf-footer .glf-link:hover {
color: #fff;
}
.glf-footer .glf-link:hover::after {
width: 100%;
}
License MIT
Original author:
Priyanshu02020
Copyright - 2026 Priyanshu02020
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.