@import url('https://fonts.googleapis.com/css?family=Montserrat:600|Noto+Sans|Open+Sans:400,700&display=swap');

*{
  margin: 0;
  padding: 0;
  border-radius: 5px;
  box-sizing: border-box;
}

/* BACKGROUND ALAM RIMBA */
body{
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  font-family: sans-serif;
  justify-content: center;
  background: linear-gradient(135deg, #0a1e12, #0f3d26, #145f38);
  background-size: 300% 300%;
  animation: bgMove 10s ease infinite;
}

/* Animasi background rumput hidup */
@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container{
  position: relative;
  width: 400px;
  background: rgba(0,0,0,0.5);
  padding: 60px 40px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

header{
  font-size: 40px;
  margin-bottom: 60px;
  font-family: 'Montserrat', sans-serif;
  color: #a6ffcb;
  text-shadow: 0 0 10px rgba(32, 255, 123, 0.6);
}

/* INPUT */
.input-field, form .button{
  margin: 25px 0;
  position: relative;
  height: 50px;
  width: 100%;
}

.input-field input{
  height: 100%;
  width: 100%;
  border: 1px solid #1b613e;
  padding-left: 15px;
  outline: none;
  background: rgba(255,255,255,0.05);
  color: #eaffef;
  font-size: 19px;
  transition: .4s;
}

input:focus{
  border: 1px solid #3bff8f;
  background: rgba(255,255,255,0.15);
}

/* LABEL */
.input-field label, span.show{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.input-field label{
  left: 15px;
  pointer-events: none;
  color: #b6ffda;
  font-size: 18px;
  transition: .4s;
}

span.show{
  right: 20px;
  color: #8affc4;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  visibility: hidden;
  font-family: 'Open Sans', sans-serif;
}

input:valid ~ span.show{
  visibility: visible;
}

input:focus ~ label,
input:valid ~ label{
  transform: translateY(-33px);
  background: #0f3d26;
  padding: 0 6px;
  font-size: 16px;
  color: #4dff9d;
}

/* BUTTON */
form .button{
  margin-top: 30px;
  overflow: hidden;
  z-index: 111;
}

.button .inner{
  position: absolute;
  height: 100%;
  width: 300%;
  left: -100%;
  z-index: -1;
  transition: all .4s;
  background: linear-gradient(90deg, #0a3d24, #16a34a, #0a3d24);
}

.button:hover .inner{
  left: 0;
}

.button button{
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  outline: none;
  color: #d8ffe9;
  font-size: 20px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

/* SIGNUP */
.signup{
  margin-top: 50px;
  font-family: 'Noto Sans', sans-serif;
  color: #bfffe0;
}

.signup a{
  color: #6dffb3;
  text-decoration: none;
}

.signup a:hover{
  text-decoration: underline;
}
