html, body {
  padding: 0px;
  margin: 0px;
  background: #F8F2ED;
  font-family: 'Raleway', sans-serif;
  color: #FFF;
  height: 100%;
}

.container {
  min-height: 300px;
  max-width: 250px;
  margin: 40px auto;
  background: #FFF;
  border-radius: 2px;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
  -webkit-animation: hi 0.5s;
          animation: hi 0.5s;
  -webkit-transform: translateZ(0px);
}
.container * {
  box-sizing: border-box;
}

.pages {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  /*white-space: nowrap;*/
  position: relative;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.pages .page {
  min-width: 100%;
  padding: 20px 15px;
  padding-top: 0px;
  background: -webkit-linear-gradient(right, #955DFF, #6FAAFF);
  background: linear-gradient(to left, #955DFF, #6FAAFF);
}
.pages .page:nth-of-type(1) .input {
  -webkit-transform: translateX(-100%) scale(0.5);
          transform: translateX(-100%) scale(0.5);
}
.pages .page:nth-of-type(2) .input {
  -webkit-transform: translateX(100%) scale(0.5);
          transform: translateX(100%) scale(0.5);
}
.pages .page .input {
  -webkit-transition: all 1s;
  transition: all 1s;
  opacity: 0;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}
.pages .page.signup {
  background: -webkit-linear-gradient(right, #6FAAFF, #955DFF);
  background: linear-gradient(to left, #6FAAFF, #955DFF);
}
.pages .page .title {
  margin-bottom: 10px;
  font-size: 14px;
  position: relative;
  line-height: 14px;
}
.pages .page .title i {
  vertical-align: text-bottom;
  font-size: 19px;
}
.pages .page .input {
  margin-top: 20px;
}
.pages .page input.text, .pages .page select.text {
  background: #F6F7F9;
  border: none;
  border-radius: 4px;
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding: 0px 10px;
  color: rgba(0, 0, 0, 0.5);
  outline: none;
}
.pages .page input[type=submit] {
  background: rgba(0, 0, 0, 0.5);
  color: #F6F7F9;
  height: 40px;
  line-height: 40px;
  width: 100%;
  border: none;
  border-radius: 4px;
  font-weight: 600;
}

.tabs {
  max-height: 50px;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #FFF;
}
.tabs .tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: #5D708A;
  text-align: center;
  line-height: 50px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.tabs .tab .text {
  font-size: 14px;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-decoration: none;
}

input[type=radio] {
  display: none;
}

input[type=radio]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) {
  box-shadow: inset -3px 2px 5px rgba(0, 0, 0, 0.25);
  color: #3F4C7F;
}
input[type=radio]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) .text {
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
}
input[type=radio]:nth-of-type(1):checked ~ .pages {
  -webkit-transform: translateX(0%);
          transform: translateX(0%);
}
input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input {
  opacity: 1;
  -webkit-transform: translateX(0%);
          transform: translateX(0%);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(1) {
  -webkit-transition-delay: 0.2s;
          transition-delay: 0.2s;
}
input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(2) {
  -webkit-transition-delay: 0.4s;
          transition-delay: 0.4s;
}
input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(3) {
  -webkit-transition-delay: 0.6s;
          transition-delay: 0.6s;
}
input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(4) {
  -webkit-transition-delay: 0.8s;
          transition-delay: 0.8s;
}
input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(5) {
  -webkit-transition-delay: 1s;
          transition-delay: 1s;
}

input[type=radio]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) {
  box-shadow: inset 3px 2px 5px rgba(0, 0, 0, 0.25);
  color: #3F4C7F;
}
input[type=radio]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) .text {
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
}
input[type=radio]:nth-of-type(2):checked ~ .pages {
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
}
input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input {
  opacity: 1;
  -webkit-transform: translateX(0%);
          transform: translateX(0%);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(1) {
  -webkit-transition-delay: 0.2s;
          transition-delay: 0.2s;
}
input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(2) {
  -webkit-transition-delay: 0.4s;
          transition-delay: 0.4s;
}
input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(3) {
  -webkit-transition-delay: 0.6s;
          transition-delay: 0.6s;
}
input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(4) {
  -webkit-transition-delay: 0.8s;
          transition-delay: 0.8s;
}
input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(5) {
  -webkit-transition-delay: 1s;
          transition-delay: 1s;
}

@-webkit-keyframes hi {
  from {
    -webkit-transform: translateY(50%) scale(0, 0);
            transform: translateY(50%) scale(0, 0);
    opacity: 0;
  }
}

@keyframes hi {
  from {
    -webkit-transform: translateY(50%) scale(0, 0);
            transform: translateY(50%) scale(0, 0);
    opacity: 0;
  }
}
