*, *:before, *:after { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #2b134b;
}

body {
  margin: 10px;
}

.content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  margin-top: 3%;
}

h1 {
  font-size: 48px;
  color: #ffffff;
  padding: 10px 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  padding-bottom: 30px;
}

h1:after {
  content: ' ';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(left, rgba(147, 184, 189, 0) 0%, rgba(147, 184, 189, 0.8) 20%, rgba(147, 184, 189, 1) 53%, rgba(147, 184, 189, 0.8) 79%, rgba(147, 184, 189, 0) 100%);
}

p {
  margin-bottom: 15px;
}

p:first-child {
  margin: 0;
}

label {
  color: #ffffff;
  position: relative;
}

input {
  outline: none;
  width: 95%;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid #b2b2b2;
  border-radius: 3px;
  box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.6) inset;
  transition: all 0.2s linear;
}

input[type="submit"] {
  width: 100% !important;
  cursor: pointer;
  background: #514869;
  padding: 8px 5px;
  color: #00ff88;
  font-size: 20px;
  border: 1px solid #00ff88;
  margin-bottom: 10px;
  text-shadow: 0 1px 1px #333;
  border-radius: 5px;
  transition: all 0.2s linear;
}

input[type="submit"]:hover {
  background: #333;
}

.link {
  position: absolute;
  background: #00ff8052;
  color: #ffffff;
  left: 0;
  height: 20px;
  width: 100%;
  padding: 17px 10px 20px 10px;
  font-size: 16px;
  text-align: right;
  border-top: 1px solid #dbe5e8;
  border-radius: 0 0 5px 5px;
}

.link a {
  font-weight: bold;
  background: rgba(0, 0, 0, 0.34);
  padding: 6px;
  color: #00ff88;
  margin-left: 10px;
  border: 1px solid rgba(0, 0, 0, 0.34);
  border-radius: 4px;
  transition: all 0.4s linear;
}

.link a:hover {
  color: #39bfd7;
  background: #514869;
  border: 1px solid #4ab3c6;
}

#cadastro, #login {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 18px 10px 60px 10px;
  margin: 0;
  background: #2f2841;
  border: 1px solid rgba(147, 184, 189, 0.8);
  box-shadow: 5px;
  border-radius: 5px;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

#paracadastro:target ~ .content #cadastro,
#paralogin:target ~ .content #login {
  z-index: 2;
  animation-name: fadeInLeft;
  animation-delay: 0.1s;
}

#registro:target ~ .content #login,
#paralogin:target ~ .content #cadastro {
  animation-name: fadeOutLeft;
}

@keyframes fadeInLeft {
  0% {
      opacity: 0;
      transform: translateX(-20px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeOutLeft {
  0% {
      opacity: 1;
      transform: translateX(0);
  }
  100% {
      opacity: 0;
      transform: translateX(-20px);
  }
}

.cds {
  text-decoration: none;
  color: #00ff88;
}

footer {
  margin-top: 50px;
  font-size: 14px;
  color: #00ff88;
  text-align: center;
  display: inline-block;
}
