﻿* {
  box-sizing: border-box; }

h1, p, input::-webkit-input-placeholder, button {
  font-family: 'roboto', sans-serif;
  font-size: 14px; }

h1 {
  height: 100px;
  width: 100%;
  font-size: 18px;
  background: #18aa8d;
  color: white;
  line-height: 150%;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 2px 5px 1px rgba(0, 0, 0, 0.2); }

.form-material {
  box-sizing: border-box;
  width: 260px;
  margin: 100px auto 0;
  box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2);
  padding-bottom: 40px;
  border-radius: 3px; }

.form-material h1 {
  padding: 20px; }

.form {
  width: 100%;
  padding: 1em; }

.form .group {
  position: relative;
  padding-bottom: 1em; }

    .form .group label {
        position: absolute;
        pointer-events: none;
        left: 0.5em;
        top: 1em;
        transition: all .3s cubic-bezier(0,0,.5,1);
        color: #ccc;
    }

.form .group input[type=text] {
  background-color: transparent;
  padding: 0.75em 1.5em;
  line-height: 1.5em;
  border: 0;
  display: block;
  width: 100%;
  margin-top: 2em;
  border-bottom: 1px solid #888888;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, #888888 4%);
  background-position: -100em 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-left: 0.5em;
  transition: 0.3s cubic-bezier(0.64, 0.09, 0.08, 1) all; }

.form .group input[type=text]:focus, .form .group input[type=text]:valid {
  background-position: 0 0; }

.form .group input[type=text]:focus ~ label, .form .group input[type=text]:valid ~ label {
  color: #888888;
  font-size: 0.875em;
  top: -1.5em; }

.form .group input[type=text]:focus {
  outline: none; }

.form input[type=submit]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.2); }

.follow {
  width: 42px;
  height: 42px;
  border-radius: 50px;
  background: #4e69a2;
  display: inline-block;
  margin: 50px calc(50% - 21px);
  white-space: nowrap;
  padding: 13px;
  box-sizing: border-box;
  color: white;
  font-family: Roboto, sans-serif;
  text-decoration: none;
  box-shadow: 0 5px 6px 0 rgba(0, 0, 0, 0.2);
  width: 134px;
  transform: translateX(-50px); }

.follow i {
  transition: margin-right 0.2s ease;
  margin-right: 10px; }
