*,
:before,
:after {
  box-sizing: border-box; }

body {
  background: #eceff1;
  margin: 0;
  font-family: 'Aleo', serif; }

.group {
  position: relative;
  top: -100px;
  margin: 45px 0; }
  @media screen and (max-height: 700px) {
    .group {
      top: auto; } }

textarea {
  resize: none; }

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 250px auto;
  position: relative; }

input,
textarea {
  font-family: 'Aleo', serif;
  background: none;
  color: #9e9e9e;
  font-size: 1.8em;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 320px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #9e9e9e; }
  input:focus,
  textarea:focus {
    outline: none; }
  input:focus ~ label, input:valid ~ label,
  textarea:focus ~ label,
  textarea:valid ~ label {
    top: -14px;
    font-size: 12px;
    color: #2196F3; }
  input:focus ~ .bar:before,
  textarea:focus ~ .bar:before {
    width: 320px; }

input[type="password"] {
  letter-spacing: 0.3em; }

label {
  color: #9e9e9e;
  font-size: 20px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 27px;
  transition: 300ms ease all; }

.bar {
  position: relative;
  display: block;
  width: 320px; }
  .bar:before {
    content: '';
    height: 2px;
    width: 0;
    bottom: 0px;
    position: absolute;
    background: #2196F3;
    transition: 300ms ease all;
    left: 0%; }

/*# sourceMappingURL=styles.css.map */
