html {
  font-size: 62.5%;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
}

body {
  font-size: 1.8em;
  line-height: 3;
  background-color: #eeeeee;
}

h3 {
  font-size: 1.8em;
  margin-bottom: 3rem;
  line-height: 1.5;
  font-weight: 800;
}

p {
  margin-bottom: 1.5rem;
}

.site-container {
  max-width: 320px;
  margin: 10px auto;
  padding-left: 0.6em;
  padding-right: 0.6em;
  padding-top: 3%;
  padding-bottom: 3%;
}

@media screen and (min-width: 60.063em) {
  .site-container {
    max-width: 400px;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background-color: white;
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.24), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
     -moz-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.24), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
          box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.24), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
  -webkit-border-radius: 2px;
     -moz-border-radius: 2px;
          border-radius: 2px;
  padding: 1em 1.5em;
}

.form__wrapper {
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 1.6rem;
  width: 100%;
  vertical-align: top;
}

.form__wrapper__submit {
  padding: 1.6rem 0;
}

.form__input {
  display: block;
  position: relative;
  margin-top: 1em;
  padding: 0.84em 0;
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  color: #444;
  font-size: 1.6rem;
  outline: 0;
  border: none;
  border-bottom: solid 1px #ddd;
}

.form__input:focus {
  background-position: 0 0;
  color: #444;
}

.form__label {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0;
  width: 100%;
  height: -webkit-calc(99%);
  height: -moz-calc(99%);
  height: calc(99%);
  text-align: left;
  pointer-events: none;
  color: #999;
}

.form__label__content {
  position: absolute;
  top: 0;
  -webkit-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.form__input:focus ~ .form__label .form__label-content,
.form--filled .form__label-content {
}

.btn {
  width: 100%;
  display: inline-block;
  padding: 0.7em 1.5em;
  -webkit-border-radius: 2px;
     -moz-border-radius: 2px;
          border-radius: 2px;
  background-color: #2196f3;
  color: #fff;
  border: 0;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  font-size: 1.6rem;
  -webkit-box-shadow: 0 1px 3px 0 rgba(3, 30, 51, 0.24),
    0 1px 2px 0 rgba(3, 30, 51, 0.12);
     -moz-box-shadow: 0 1px 3px 0 rgba(3, 30, 51, 0.24),
    0 1px 2px 0 rgba(3, 30, 51, 0.12);
          box-shadow: 0 1px 3px 0 rgba(3, 30, 51, 0.24),
    0 1px 2px 0 rgba(3, 30, 51, 0.12);
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
       animation-iteration-count: infinite;
  -webkit-animation-duration: 2s;
  -moz-animation-duration: 2s;
    -o-animation-duration: 2s;
       animation-duration: 2s;
}

.btn:focus,
.btn:hover {
  background-color: #0d8aee;
}

.form__label::after {
  width: 0%;
  content: '';
  position: absolute;
  border: 1px solid #0d8aee;
  bottom: 0;
  left: -2px;
  -webkit-transition: width 0.5s ease-in-out 0s;
  -o-transition: width 0.5s ease-in-out 0s;
  -moz-transition: width 0.5s ease-in-out 0s;
  transition: width 0.5s ease-in-out 0s;
}

.moveToTop {
  top: -15px;
  font-size: 0.8em;
}

.form__input:focus ~ .form__label::after {
  width: 100%;
  -webkit-transition: width 0s;
  -o-transition: width 0s;
  -moz-transition: width 0s;
  transition: width 0s;
}
