<!-- this is the markup, keep your hands off! -->

<form>
  <label for="email">Subscribe to our mailing list</label>
  <input type="email" value="" name="email" placeholder="email address" required>
  <input type="submit" value="Subscribe" name="subscribe">
</form>
@import url(https://fonts.googleapis.com/css?family=Roboto);

#{
  box-sizing: border-box;
}

body{
  background-color: #F1F1F1;
}

form{
  width: 400px;
  margin: 0 auto;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  padding: 20px 0;
  margin-top: 40px;
  padding-bottom: 40px;
}

label{
  font-family: 'Roboto', sans-serif;
  display: block;
  font-size: 24px;
  font-weight: 100;
  text-transform: capitalize;
  color: #333333;
  text-align: center;
  margin-top: 20px;
}

input[type="email"]{
  font-family: 'Roboto', sans-serif;
  display: block;
  width: 300px;
  margin: 30px auto;
  border: none;
  border-bottom: 1px solid #757575;
  outline: none;
  width: 300px;
  padding: 5px 0;
  font-size: 18px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  text-transform: capitalize;
}

input[type="email"]:focus{
  border-bottom: 1px solid #2A9AF2;
  box-shadow: 0px 1px 0px 0px #2A9AF2;
}

input[type="submit"]{
  font-family: 'Roboto', sans-serif;
  background-color: #2A9AF2;
  border: none;
  color: #FFFFFF;
  border-radius: 3px;
  width: 300px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
  padding: 10px;
  margin: 0 auto;
  display: block;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type='submit']:hover{
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.