* {
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Cantarell", sans-serif;
/*  background-color: #17BEBB; */
  background-color: #7d7bdd;
  color: rgba(0, 0, 0, 0.85);
  font-size: 16px;
  overflow: hidden;
}

a {
  font-size: 90%;
  cursor: pointer;
  letter-spacing: 2px;
  text-decoration: none;
  border-bottom: 1px solid rgba(211, 49, 68, 0.8);
  box-shadow: 0 0 0 #F5F5F5, 0 0 0 rgba(211, 49, 68, 0.8);
  text-transform: uppercase;
  color: rgba(211, 49, 68, 0.8);
  transition: all 0.2s;
}

a:hover {
  border-bottom: 2px solid rgba(211, 49, 68, 0.7);
  box-shadow: 0 2px 0 #F5F5F5, 0 4px 0 rgba(211, 49, 68, 0.7);
  color: #d33144;
  transition: all 0.1s;
}

#title {
  font-size: 110%;
  margin-bottom: 23px;
  text-align: center;
  letter-spacing: 10px;
  text-indent: 10px;
  text-transform: uppercase;
  font-weight: normal;
  color: #F5F5F5;
  text-shadow: 0px 0px 0px rgba(255, 255, 255, 0);
  z-index: -20;
  font-family: "Josefin Sans", sans-serif;
}

#title.signed-in {
  text-shadow: 0px 0px 40px white, 0 -5px 6px rgba(0, 0, 0, 0.3);
  font-size: 180%;
  letter-spacing: 20px;
  transform: translateY(85px);
  transition: all 2.5s, text-shadow 4s 1s;
}

#title.signed-up {
  text-shadow: 0px 0px 40px white;
  font-size: 200%;
  letter-spacing: 20px;
  transform: translateY(160px);
  transition: all 1s, text-shadow 4s 1s;
}

#message {
  position: absolute;
  text-align: center;
  left: 40px;
  right: 40px;
  font-size: 115%;
  letter-spacing: 10px;
  color: #F5F5F5;
  opacity: 0;
  top: 40%;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.4);
  z-index: -2;
}

#message.signed-in {
  opacity: 1;
  top: 290px;
  font-size: 120%;
  letter-spacing: 8px;
  text-shadow: 0 5px 6px rgba(0, 0, 0, 0.3);
  transition: all 2s 0.5s, opacity 1s 0.5s, text-shadow 4s 1s;
}

#message.signed-up {
  opacity: 1;
  top: 200px;
  letter-spacing: 8px;
  z-index: 11;
  transition: all 2s 0.5s, opacity 1s 1.5s;
}

.content {
  display: flex;
  flex-direction: column;
}

.container {
  text-align: center;
  position: relative;
  overflow: hidden;
  /* this fixes the overflow:hidden bug */
  width: 600px;
  height: 600px;
  /*background-color: #26547C;*/
  background-color: #302e6d;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 30px, rgba(0, 0, 0, 0.4) 0px 0px 200px;
  z-index: 1;
  border-radius: 50%;
  margin: calc(50vh - 300px) 0 0 calc(50vw - 300px);
  padding: 40px 40px 0 40px;
}

.container.signed-up {
  background-color: #482C3D;
  transition: all 1s;
  -webkit-animation: sky-color 5s ease;
          animation: sky-color 5s ease;
}

.form {
  padding: 50px;
  background-color: #F5F5F5;
  width: 100%;
  height: 100%;
  z-index: 10;
  border-radius: 50%;
  box-shadow: 0px 0px 0px 0px rgba(100, 100, 100, 0), 0px 0px 0px 0px rgba(100, 100, 100, 0);
}

.form.signed-in {
  background-color: #F5F5F5;
  transform: translateY(100%) rotate(90deg) scale(2, 2);
  box-shadow: 0px 100px 0px 20px rgba(1, 1, 1, 0.3), -30px -90px 0px 5px rgba(1, 1, 1, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 2s 1s;
}

.form.signed-up {
  background-color: #F5F5F5;
  transform: translateY(100%) rotate(90deg) scale(2, 2);
  box-shadow: 0px 70px 0px 10px rgba(255, 255, 255, 0.3), -10px -70px 0px 5px rgba(255, 255, 255, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 2s 1s;
}

form {
  margin: 0 auto;
  width: 70%;
  height: 300px;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #F5F5F5 inset;
}

.sign--type {
  -webkit-animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1);
          animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1);
}

input:first-of-type {
  -webkit-animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.1s;
          animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.1s;
}

input:nth-of-type(2) {
  -webkit-animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.2s;
          animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.2s;
}

input:nth-of-type(3) {
  -webkit-animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.3s;
          animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.3s;
}

input:nth-of-type(4) {
  -webkit-animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.4s;
          animation: slideUp 0.8s cubic-bezier(0.37, 0.82, 0.2, 1) 0.4s;
}

#sun {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  margin-left: -60px;
  border-radius: 50%;
  background-color: #FFDD59;
  box-shadow: 0 0 10px #FFDD59, 0 0 50px yellow;
  margin-top: 60%;
  z-index: -1;
  transition: all cubic-bezier(0.87, -0.41, 0.19, 1.44) 0.4s;
}

#sun.signed-in {
  margin-top: 10%;
  background-color: #FFDD59;
  box-shadow: 0 0 10px #FFDD59, 0 0 50px yellow;
  z-index: -1;
  transition: all 2s cubic-bezier(0.84, 0.33, 0.37, 1.42) 0.5s;
}

#sun.signed-up {
  box-shadow: 0 0 10px #D8973C, 0 0 50px yellow;
  background-color: #FFBB00;
  -webkit-animation: sunny 4s linear;
          animation: sunny 4s linear;
}

.spacer {
  display: block;
  width: 100%;
  height: 40px;
  background-color: transparent;
}

input.text-box {
  font-size: 90%;
  display: block;
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  padding: 16px 13px;
  color: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0);
  border-radius: 2px;
}

input.text-box::-webkit-input-placeholder {
  font-size: 90%;
  color: rgba(0, 0, 0, 0.4);
}

input.text-box:focus {
  border-color: rgba(211, 49, 68, 0.5);
}

input.submit {
  font-size: 100%;
  line-height: 16px;
  display: block;
  width: 100%;
  height: 42px;
  cursor: pointer;
  vertical-align: middle;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  border: 0 solid rgba(0, 0, 0, 0.8);
/*  background: #17BEBB; */
  background: #7d7bdd;
  margin-top: 0px;
  box-shadow: 0 2px 0 #F5F5F5, 0 6px 0 #7d7bdd;
  transition: all 0.4s;
}

input.submit:hover {
  background: #302e6d;
  box-shadow: 0 2px 0 #F5F5F5, 0 6px 0 #302e6d, 0 8px 0 #F5F5F5, 0 11px 0 #302e6d;
  margin-top: -2px;
  transition: all 0.2s;
}

input.submit:active {
  transition: all 0.1s;
  margin-top: 15px;
  box-shadow: 0 0px 0 #F5F5F5, 0 3px 0 #302e6d, 0 0px 0 #F5F5F5, 0 6px 0 #302e6d;
}

input:focus {
  outline: none;
}

.submit-wrap {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.signup--content {
  display: none;
}

.sign--type {
  padding: 0;
  opacity: 0.8;
}

@-webkit-keyframes slideUp {
  0% {
    opacity: 0;
    margin-top: 100%;
  }
  100% {
    opacity: 1;
    margin-top: 0%;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    margin-top: 100%;
  }
  100% {
    opacity: 1;
    margin-top: 0%;
  }
}
@-webkit-keyframes sunny {
  from {
    margin-top: 30%;
    margin-left: -60px;
    transform: rotate(-90deg) translate(-200px) rotate(90deg);
  }
  to {
    margin-top: 30%;
    margin-left: -60px;
    transform: rotate(270deg) translate(-200px) rotate(-270deg);
  }
}
@keyframes sunny {
  from {
    margin-top: 30%;
    margin-left: -60px;
    transform: rotate(-90deg) translate(-200px) rotate(90deg);
  }
  to {
    margin-top: 30%;
    margin-left: -60px;
    transform: rotate(270deg) translate(-200px) rotate(-270deg);
  }
}
@-webkit-keyframes sky-color {
  0% {
    background-color: #26547C;
  }
  5% {
    background-color: #482C3D;
  }
  50% {
    background-color: #258EA6;
  }
  100% {
    background-color: #482C3D;
  }
}
@keyframes sky-color {
  0% {
    background-color: #26547C;
  }
  5% {
    background-color: #482C3D;
  }
  50% {
    background-color: #258EA6;
  }
  100% {
    background-color: #482C3D;
  }
}