<body>
<main class="main">
<aside class="aside">
<h1>
Sign up
</h1>
</aside>
<section id="form">
<h2>New User?</h2>
<p>Use the form below to create your account.</p>
<form>
<div class="input-block input-name">
<label class="form-input">
First Name
<input type="text" placeholder="Alice">
</label>
<label class="form-input">
Last Name
<input type="text" placeholder="Miller">
</label>
</div>
<div class="input-block">
<label class="form-input">
Nationality
<input type="text" placeholder="Russian">
</label>
<label class="form-input">
E-mail
<input type="email" placeholder="@google.com">
</label>
</div>
<div class="input-block">
<div class="form-input">
Date of Birth
<input type="text">
</div>
<div class="form-input">
Gender
<div class="radio-input-group">
<div class="radio-input">
<input type="radio" name="1"> Male
</div>
<div class="radio-input">
<input type="radio" name="1"> Female
</div>
</div>
</div>
</div>
</form>
</section>
</main>
</body>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #f2f2f2;
}
#form {
width: 665px;
background-color: #Fff;
padding: 21px 35px;
}
#form form .form-input {
display: flex;
flex-direction: column;
width: 45%;
}
.input-block {
display: flex;
justify-content: space-between;
font-family: "Work Sans";
font-weight: 300;
font-size: 14px;
color: #7c7c7c;
margin-top: 16px;
}
.input-name {
margin-top: 20px;
}
input {
outline: none;
border: 1px solid #fff;
border-bottom: 1px solid #f2f2f2;
height: 25px;
}
.gender {
display: flex;
}
.main {
display: flex;
}
.aside {
width: 137px;
height: 480px;
background-color: #5A61ED;
}
p {
font-family: "Work Sans";
font-weight: 300;
color: #111111;
line-height: 14px;
}
h1 {
position: absolute;
color: white;
transform: rotate(270deg);
white-space: nowrap;
font-size: 49px;
bottom: 225px;
left: 20px;
font-family: PT Sans;
font-weight: 400;
}
h2 {
font-family: Work Sans;
font-weight: 500;
font-size: 22px;
color: #111111;
line-height: 26px;
}
.radio-input-group {
display: flex;
align-items: center;
}
.radio-input-group .radio-input {
margin-right: 1em;
}
.radio-input {
display: flex;
align-items: center;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.