<div class="card">
<label for="name">Your name</label>
<input type="text" id="name">
<label for="email">Your email</label>
<input type="email" id="email">
<button>Login</button>
</div>
:root {
--color-main-bg: #DDDFE3;
--color-white: #fff;
--color-accent: #FF9635;
--color-purple: #9999FF;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: var(--color-main-bg);
}
.card {
padding: 2rem;
background: var(--color-white);
box-shadow:
0 12.5px 10px rgba(0, 0, 0, 0.035),
0 100px 80px rgba(0, 0, 0, 0.07);
border-radius: 4px;
}
input {
margin-bottom: 1.5rem;
background: var(--color-main-bg);
border: none;
height: 3rem;
border-radius: 4px;
min-width: 20rem;
display: block;
padding: 0 1rem;
}
button {
border: none;
height: 3rem;
padding: 0 2rem;
border-radius: 4px;
background: var(--color-accent);
color: var(--color-white);
cursor: pointer;
}
label {
margin-bottom: .5rem;
display: inline-block;
}
:focus {
outline: 3px solid red;
}
:focus:not(:focus-visible) {
outline: none;
}
:focus-visible {
outline: 3px solid var(--color-purple);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.