
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 10px;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 130%;
  background: url("bg.jpg"), #000;
  background-position: center;
  background-size: cover;
}

.wrapper {
  width: 400px;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

form {
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

/* clock */
#clock {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}

.input-field {
  position: relative;
  border-bottom: 2px solid #ccc;
  margin: 15px 0;

}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  transition: 0.15s ease;
}

.input-field input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
  text-transform: capitalize;
}

.input-field input:focus~label,
.input-field input:valid~label {
  font-size: 0.8rem;
  top: 10px;
  transform: translateY(-120%);
}

.input-select {
  position: relative;
  border-bottom: 2px solid #ccc;
  margin: 15px 0;
}

.input-select select {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
}

.input-select select option {
  background: rgba(31, 2, 4, 0.557);
  color: #fff;
}

.input-checkbox {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.input-checkbox input {
  width: 15px;
  height: 15px;
  margin-right: 10px;
  cursor: pointer;
  padding: 0;
}

.input-checkbox label {
  color: #fff;
}

/* cekbok hanya bisa pilih salah satu */
.input-checkbox input[type="checkbox"] {
  display: none;
}

.input-checkbox input[type="checkbox"]+label {
  position: relative;
  padding-left: 30px;
  padding-right: 28px;
  cursor: pointer;
}

.input-checkbox input[type="checkbox"]+label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  background: transparent;
}

.input-checkbox input[type="checkbox"]:checked+label:before {
  background: #fff;
}

.input-checkbox input[type="checkbox"]:checked+label:after {
  content: "";
  position: absolute;
  left: 2%;
  top: 20%;
  width: 20px;
  height: 10px;
  border: 2px solid #000;
  border-top: none;
  border-right: none;
  transform: rotate(300deg);
  display: block;
  border-radius: 10%;
}
  
.input-checkbox input[type="checkbox"]:checked~input[type="checkbox"]+label:before {
  background: transparent;
}

.input-checkbox input[type="checkbox"]:checked~input[type="checkbox"]+label:after {
  content: "";
  position: absolute;
  border: #fff;
  border-top: none;
  border-right: none;
} 



.wrapper a {
  color: #efefef;
  text-decoration: none;
}

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

button {
  background: #fff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

button:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.footer {
  text-align: center;
  margin-top: 20px;
  color: #fff;
  font-size: 12px;
}

/* mobile 1000px */
@media screen and (max-width: 1000px) {
  .wrapper {
    width: 100%;
  }
}

/* mobile 800px */
@media screen and (max-width: 800px) {
  .wrapper {
    padding: 20px;
  }
}

/* mobile 600px */
@media screen and (max-width: 600px) {
  .wrapper {
    padding: 10px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .input-field label {
    font-size: 14px;
  }

  .input-field input {
    font-size: 14px;
  }

  .input-select select {
    font-size: 14px;
  }

  .input-checkbox label {
    font-size: 14px;
  }

  button {
    font-size: 14px;
  }

  .footer {
    font-size: 10px;
  }
}

/* mobile 400px */
@media screen and (max-width: 400px) {
  .wrapper {
    padding: 10px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .input-field label {
    font-size: 12px;
  }

  .input-field input {
    font-size: 12px;
  }

  .input-select select {
    font-size: 12px;
  }

  .input-checkbox label {
    font-size: 12px;
  }

  button {
    font-size: 12px;
  }

  .footer {
    font-size: 8px;
  }
}

/* mobile 300px */
@media screen and (max-width: 300px) {
  .wrapper {
    padding: 10px;
  }

  h2 {
    font-size: 1rem;
  }

  .input-field label {
    font-size: 10px;
  }

  .input-field input {
    font-size: 10px;
  }

  .input-select select {
    font-size: 10px;
  }

  .input-checkbox label {
    font-size: 10px;
  }

  button {
    font-size: 10px;
  }

  .footer {
    font-size: 6px;
  }
}



