Sign-in page
A dark sign-in page: email and password, two other ways in, on a ruled frame with a blue glow rising from below.
New to Logoipsum? Create an account
Options
Code
import "./sign-in.css";
function Google() {
return <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden><path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" /></svg>;
}
function GitHub() {
return <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" /></svg>;
}
export function SignIn({ onSubmit }) {
return (
<section className="dh-signin">
<div className="dh-signin-frame">
<header>
<a href="/"><img src="/blocks/grid-hero-logo.svg" alt="Logoipsum" width="120" height="21" /></a>
<p>New to Logoipsum? <a className="dh-signin-ghost" href="#">Create an account</a></p>
</header>
<main>
<form onSubmit={onSubmit}>
<p className="dh-signin-label">Sign in</p>
<h1>Welcome back.</h1>
<p>Sign in to continue.</p>
<label>
<span>Email address</span>
<input type="email" name="email" placeholder="[email protected]" autoComplete="email" required />
</label>
<label>
<span>Password <a href="#">Forgot your password?</a></span>
<input type="password" name="password" placeholder="Your password" autoComplete="current-password" required />
</label>
<button className="dh-signin-primary" type="submit">Sign in</button>
<div className="dh-signin-others">
<button className="dh-signin-ghost" type="button"><Google /> Google</button>
<button className="dh-signin-ghost" type="button"><GitHub /> GitHub</button>
</div>
<a className="dh-signin-more" href="#">Sign in with a passkey or single sign-on</a>
</form>
</main>
<footer>
<p>© 2026 Logoipsum Inc.</p>
<p>By continuing you agree to our <a href="#">Terms</a> and <a href="#">Privacy policy</a>.</p>
</footer>
</div>
</section>
);
}.dh-signin {
--side: min(118px, 8.2cqw);
container-type: inline-size;
position: relative;
overflow: hidden;
background: #0a0c13;
color: #fff;
font-family: "Inter Variable", Inter, system-ui, sans-serif;
font-size: 14px;
line-height: 18px;
}
.dh-signin::before {
content: "";
position: absolute;
inset: 330px 0 0;
background: url("/blocks/sign-in-glow.jpg") center top / cover no-repeat;
-webkit-mask-image: linear-gradient(transparent, #000 38%);
mask-image: linear-gradient(transparent, #000 38%);
}
.dh-signin::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
rgb(21 23 32 / 0.86),
rgb(17 19 28 / 0.9) 10.8%,
rgb(21 23 32 / 0.88) 10.8%,
rgb(16 18 27 / 0.8) 46%,
rgb(13 15 23 / 0.5) 89.3%,
rgb(13 15 23 / 0.4)
);
}
.dh-signin p,
.dh-signin h1 {
margin: 0;
}
.dh-signin a {
color: inherit;
text-decoration: none;
}
.dh-signin-frame {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
min-height: 900px;
margin: 0 var(--side);
border: solid rgb(255 255 255 / 0.1);
border-width: 0 1px;
}
.dh-signin-frame::before,
.dh-signin-frame::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: var(--side);
background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.085) 0 1px, transparent 1px 7.8px);
}
.dh-signin-frame::before {
right: 100%;
}
.dh-signin-frame::after {
left: 100%;
}
.dh-signin header,
.dh-signin footer {
display: flex;
flex: none;
align-items: center;
justify-content: space-between;
gap: 16px;
height: 96px;
padding: 0 40px;
}
.dh-signin header {
border-bottom: 1px solid rgb(255 255 255 / 0.08);
color: rgb(255 255 255 / 0.56);
}
.dh-signin header img {
display: block;
}
.dh-signin header p {
display: flex;
align-items: center;
gap: 14px;
}
.dh-signin footer {
border-top: 1px solid rgb(255 255 255 / 0.08);
color: rgb(255 255 255 / 0.4);
font-size: 12.5px;
}
.dh-signin footer p:first-child {
font: 11px/14px "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.dh-signin footer a {
text-decoration: underline;
text-decoration-color: rgb(255 255 255 / 0.25);
text-underline-offset: 3px;
}
.dh-signin main {
display: flex;
flex: 1;
justify-content: center;
}
.dh-signin form {
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
max-width: 400px;
box-sizing: border-box;
padding: 48px 36px;
border: solid;
border-width: 0 1px;
border-image: linear-gradient(rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)) 1;
}
.dh-signin-label {
color: #95bbf7;
font: 500 12px/16px "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.dh-signin h1 {
margin: 10px 0;
font: 500 38px/42px "Geist Variable", Geist, system-ui, sans-serif;
letter-spacing: -0.045em;
}
.dh-signin h1 + p {
margin-bottom: 28px;
color: rgb(255 255 255 / 0.6);
font-size: 14.5px;
line-height: 22px;
}
.dh-signin label {
display: block;
margin-bottom: 14px;
}
.dh-signin label span {
display: flex;
justify-content: space-between;
margin-bottom: 7px;
color: rgb(255 255 255 / 0.72);
font-size: 13px;
font-weight: 500;
line-height: 16px;
}
.dh-signin label a {
color: rgb(255 255 255 / 0.5);
font-weight: 400;
}
.dh-signin input {
width: 100%;
height: 44px;
box-sizing: border-box;
padding: 0 14px;
border: 1px solid rgb(255 255 255 / 0.1);
border-top-color: rgb(255 255 255 / 0.14);
border-radius: 10px;
background: #10121a;
color: #fff;
font: inherit;
font-size: 14.5px;
outline: none;
transition: border-color 150ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dh-signin input::placeholder {
color: rgb(255 255 255 / 0.36);
}
.dh-signin input:focus-visible {
border-color: #6f94f0;
box-shadow: 0 0 0 3px rgb(92 137 237 / 0.25);
}
.dh-signin button,
.dh-signin-ghost {
font: 500 14px/18px "Inter Variable", Inter, system-ui, sans-serif;
cursor: pointer;
transition: filter 150ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms cubic-bezier(0.23, 1, 0.32, 1), scale 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dh-signin button:active,
.dh-signin-ghost:active {
scale: 0.98;
}
.dh-signin :is(button, a):focus-visible {
outline: 2px solid #95bbf7;
outline-offset: 2px;
}
.dh-signin-primary {
height: 44px;
margin-top: 14px;
border: 1px solid rgb(190 215 255 / 0.5);
border-radius: 10px;
background: linear-gradient(#5c89ed, #3a5cdd 55%, #4e73eb) border-box;
color: #fff;
font-size: 14.5px;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 8px 20px -8px rgb(58 92 221 / 0.7);
}
.dh-signin .dh-signin-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 34px;
padding: 0 14px;
border: 1px solid rgb(255 255 255 / 0.12);
border-radius: 9px;
background: rgb(255 255 255 / 0.04);
color: rgb(255 255 255 / 0.9);
white-space: nowrap;
}
.dh-signin-others {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 10px;
}
.dh-signin-others .dh-signin-ghost {
height: 44px;
border-radius: 10px;
background: rgb(255 255 255 / 0.03);
}
.dh-signin-others svg {
width: 15px;
height: 15px;
}
.dh-signin a.dh-signin-more {
margin-top: 28px;
color: rgb(255 255 255 / 0.5);
font-size: 13px;
line-height: 16px;
text-align: center;
}
@media (hover: hover) {
.dh-signin-primary:hover {
filter: brightness(1.08);
}
.dh-signin .dh-signin-ghost:hover {
background: rgb(255 255 255 / 0.08);
}
.dh-signin :is(label a, a.dh-signin-more, footer a):hover {
color: #fff;
}
}
@container (max-width: 720px) {
.dh-signin-frame { min-height: 720px; margin: 0; border: 0; }
.dh-signin-frame::before,
.dh-signin-frame::after { display: none; }
.dh-signin header { height: 72px; padding: 0 20px; }
.dh-signin header p { font-size: 0; gap: 0; }
.dh-signin form { max-width: 440px; padding: 40px 20px; border: 0; }
.dh-signin footer { flex-direction: column; justify-content: center; gap: 8px; height: auto; padding: 20px; text-align: center; }
}<section class="dh-signin">
<div class="dh-signin-frame">
<header>
<a href="#"><img src="/blocks/grid-hero-logo.svg" alt="Logoipsum" width="120" height="21" /></a>
<p>New to Logoipsum? <a class="dh-signin-ghost" href="#">Create an account</a></p>
</header>
<main>
<form action="#">
<p class="dh-signin-label">Sign in</p>
<h1>Welcome back.</h1>
<p>Sign in to continue.</p>
<label>
<span>Email address</span>
<input type="email" name="email" placeholder="[email protected]" autocomplete="email" required />
</label>
<label>
<span>Password <a href="#">Forgot your password?</a></span>
<input type="password" name="password" placeholder="Your password" autocomplete="current-password" required />
</label>
<button class="dh-signin-primary" type="submit">Sign in</button>
<div class="dh-signin-others">
<button class="dh-signin-ghost" type="button"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true"><path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" /></svg> Google</button>
<button class="dh-signin-ghost" type="button"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" /></svg> GitHub</button>
</div>
<a class="dh-signin-more" href="#">Sign in with a passkey or single sign-on</a>
</form>
</main>
<footer>
<p>© 2026 Logoipsum Inc.</p>
<p>By continuing you agree to our <a href="#">Terms</a> and <a href="#">Privacy policy</a>.</p>
</footer>
</div>
</section>.dh-signin {
--side: min(118px, 8.2cqw);
container-type: inline-size;
position: relative;
overflow: hidden;
background: #0a0c13;
color: #fff;
font-family: "Inter Variable", Inter, system-ui, sans-serif;
font-size: 14px;
line-height: 18px;
}
.dh-signin::before {
content: "";
position: absolute;
inset: 330px 0 0;
background: url("/blocks/sign-in-glow.jpg") center top / cover no-repeat;
-webkit-mask-image: linear-gradient(transparent, #000 38%);
mask-image: linear-gradient(transparent, #000 38%);
}
.dh-signin::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
rgb(21 23 32 / 0.86),
rgb(17 19 28 / 0.9) 10.8%,
rgb(21 23 32 / 0.88) 10.8%,
rgb(16 18 27 / 0.8) 46%,
rgb(13 15 23 / 0.5) 89.3%,
rgb(13 15 23 / 0.4)
);
}
.dh-signin p,
.dh-signin h1 {
margin: 0;
}
.dh-signin a {
color: inherit;
text-decoration: none;
}
.dh-signin-frame {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
min-height: 900px;
margin: 0 var(--side);
border: solid rgb(255 255 255 / 0.1);
border-width: 0 1px;
}
.dh-signin-frame::before,
.dh-signin-frame::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: var(--side);
background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.085) 0 1px, transparent 1px 7.8px);
}
.dh-signin-frame::before {
right: 100%;
}
.dh-signin-frame::after {
left: 100%;
}
.dh-signin header,
.dh-signin footer {
display: flex;
flex: none;
align-items: center;
justify-content: space-between;
gap: 16px;
height: 96px;
padding: 0 40px;
}
.dh-signin header {
border-bottom: 1px solid rgb(255 255 255 / 0.08);
color: rgb(255 255 255 / 0.56);
}
.dh-signin header img {
display: block;
}
.dh-signin header p {
display: flex;
align-items: center;
gap: 14px;
}
.dh-signin footer {
border-top: 1px solid rgb(255 255 255 / 0.08);
color: rgb(255 255 255 / 0.4);
font-size: 12.5px;
}
.dh-signin footer p:first-child {
font: 11px/14px "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.dh-signin footer a {
text-decoration: underline;
text-decoration-color: rgb(255 255 255 / 0.25);
text-underline-offset: 3px;
}
.dh-signin main {
display: flex;
flex: 1;
justify-content: center;
}
.dh-signin form {
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
max-width: 400px;
box-sizing: border-box;
padding: 48px 36px;
border: solid;
border-width: 0 1px;
border-image: linear-gradient(rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)) 1;
}
.dh-signin-label {
color: #95bbf7;
font: 500 12px/16px "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.dh-signin h1 {
margin: 10px 0;
font: 500 38px/42px "Geist Variable", Geist, system-ui, sans-serif;
letter-spacing: -0.045em;
}
.dh-signin h1 + p {
margin-bottom: 28px;
color: rgb(255 255 255 / 0.6);
font-size: 14.5px;
line-height: 22px;
}
.dh-signin label {
display: block;
margin-bottom: 14px;
}
.dh-signin label span {
display: flex;
justify-content: space-between;
margin-bottom: 7px;
color: rgb(255 255 255 / 0.72);
font-size: 13px;
font-weight: 500;
line-height: 16px;
}
.dh-signin label a {
color: rgb(255 255 255 / 0.5);
font-weight: 400;
}
.dh-signin input {
width: 100%;
height: 44px;
box-sizing: border-box;
padding: 0 14px;
border: 1px solid rgb(255 255 255 / 0.1);
border-top-color: rgb(255 255 255 / 0.14);
border-radius: 10px;
background: #10121a;
color: #fff;
font: inherit;
font-size: 14.5px;
outline: none;
transition: border-color 150ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dh-signin input::placeholder {
color: rgb(255 255 255 / 0.36);
}
.dh-signin input:focus-visible {
border-color: #6f94f0;
box-shadow: 0 0 0 3px rgb(92 137 237 / 0.25);
}
.dh-signin button,
.dh-signin-ghost {
font: 500 14px/18px "Inter Variable", Inter, system-ui, sans-serif;
cursor: pointer;
transition: filter 150ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms cubic-bezier(0.23, 1, 0.32, 1), scale 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dh-signin button:active,
.dh-signin-ghost:active {
scale: 0.98;
}
.dh-signin :is(button, a):focus-visible {
outline: 2px solid #95bbf7;
outline-offset: 2px;
}
.dh-signin-primary {
height: 44px;
margin-top: 14px;
border: 1px solid rgb(190 215 255 / 0.5);
border-radius: 10px;
background: linear-gradient(#5c89ed, #3a5cdd 55%, #4e73eb) border-box;
color: #fff;
font-size: 14.5px;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 8px 20px -8px rgb(58 92 221 / 0.7);
}
.dh-signin .dh-signin-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 34px;
padding: 0 14px;
border: 1px solid rgb(255 255 255 / 0.12);
border-radius: 9px;
background: rgb(255 255 255 / 0.04);
color: rgb(255 255 255 / 0.9);
white-space: nowrap;
}
.dh-signin-others {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 10px;
}
.dh-signin-others .dh-signin-ghost {
height: 44px;
border-radius: 10px;
background: rgb(255 255 255 / 0.03);
}
.dh-signin-others svg {
width: 15px;
height: 15px;
}
.dh-signin a.dh-signin-more {
margin-top: 28px;
color: rgb(255 255 255 / 0.5);
font-size: 13px;
line-height: 16px;
text-align: center;
}
@media (hover: hover) {
.dh-signin-primary:hover {
filter: brightness(1.08);
}
.dh-signin .dh-signin-ghost:hover {
background: rgb(255 255 255 / 0.08);
}
.dh-signin :is(label a, a.dh-signin-more, footer a):hover {
color: #fff;
}
}
@container (max-width: 720px) {
.dh-signin-frame { min-height: 720px; margin: 0; border: 0; }
.dh-signin-frame::before,
.dh-signin-frame::after { display: none; }
.dh-signin header { height: 72px; padding: 0 20px; }
.dh-signin header p { font-size: 0; gap: 0; }
.dh-signin form { max-width: 440px; padding: 40px 20px; border: 0; }
.dh-signin footer { flex-direction: column; justify-content: center; gap: 8px; height: auto; padding: 20px; text-align: center; }
}Sign-in page is not in the Figma file yet.
Use the React or HTML code for now.