<section class="registration">
<form action="">
<label for="email">Your email</label>
<input type="text">
<p class="error"><span>This email exists already in the database.</span></p>
<label for="pword">Password</label>
<input type="password">
<p class="error"><span>At least 30 characters.</span></p>
<label for="pwordr">Password [repeat]</label>
<input type="password">
<p class="error"><span>At least 30 characters.</span></p>
<label for="yob">Year of Birth</label>
<input type="text">
<p class="error"><span>Some text here.</span></p>
<label for="">Country</label>
<select name="country" id="">
<option value="USA">USA</option>
<option value="UK">UK</option>
</select>
<div class="register_button"><span><a href="#">REGISTER</a></span></div>
</form>
</section>
$black: #000;
$orange: #ffa500;
body {
font-family: "Signika Negative", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Old Standard TT", serif;
}
.registration {
form {
width: 220px;
height: 330px;
background-color: $black;
padding: 10px 0px 0px 4px;
border-radius: 15px;
color: invert($black);
text-transform: uppercase;
font-size: 11px;
font-weight: bold;
}
input,
select {
width: 195px;
height: 20px;
margin: 3px 0px 0px 10px;
border: 0px;
font-weight: bold;
}
input:focus {
background-color: $orange;
}
form label {
margin: 5px 0px 0px 15px;
}
}
a {
outline: none;
}
.register_button {
width: 149px;
height: 42px;
background-color: $orange;
border-radius: 10px;
margin: 15px auto 0px auto;
text-align: center;
cursor: pointer;
clear: both;
&:hover {
background-color: invert($black);
color: $orange;
}
span {
font-weight: normal;
font-size: 28px;
line-height: 40px;
a {
text-decoration: none;
color: invert($black);
&:hover {
background-color: invert($black);
color: $orange;
}
}
}
}
span.error {
margin-right: 20px;
font-size: 9px;
color: $orange;
height: 10px;
}
p.error {
margin: 0px 14px 0px 10px;
font-size: 9px;
color: $orange;
height: 6px;
padding: 0px 0px 8px 0px;
text-align: right;
text-transform: none;
}
View Compiled
This Pen doesn't use any external CSS resources.