/* Reseting */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  background: rgb(90, 0, 255);
  background: linear-gradient(
    135deg,
    rgba(90, 0, 255, 1) 0%,
    rgba(255, 31, 247, 1) 100%
  );
  min-height: 93vh;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heading {
  font-size: 32px;
  text-align: center;
  color: white;
  margin: 20px;
}

.form {
  padding: 20px;
  padding-top: 0px;
}

.wrapper {
  max-width: 500px;
  margin: 50px auto;
}

.wrapper .card {
  max-width: 400px;
  min-height: fit-content;
  margin: 30px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(100px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 0.8rem;
}

.field {
  position: relative;
  width: 300px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 18px;
  color: black;
}

.field input,
.field select {
  width: 100%;
  position: absolute;
  font-size: 19px;
  padding-left: 30px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 35px;
  border: 1px solid white;
  border-radius: 15px;
  background-color: transparent;
  color: black;
}

.field label {
  font-size: 18px;
  position: absolute;
  left: 35px;
  top: 12px;
  transition: 0.5s;
}

.field i {
  position: absolute;
  font-size: 18px;
  margin-top: 14px;
  margin-left: 7px;
}

.field #showpwd {
  right: 10px;
}

.field input:focus ~ label,
.field input:valid ~ label,
.fieldSelect label {
  top: 1px;
  left: 15px;
  font-size: 12px;
  color: black;
  background-color: inherit;
}

.field input:focus {
  border: 1px solid white;
}

.buttons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons input {
  width: 80%;
  font-size: 18px;
  margin-top: 20px;
  padding: 5px;
  border: 1px solid white;
  background: linear-gradient(
    135deg,
    rgba(90, 0, 255, 1) 0%,
    rgba(255, 31, 247, 1) 100%
  );
  border-radius: 15px;
  color: black;
  transition: 1s;
}

.buttons input:hover {
  cursor: pointer;
  background-color: white;
  background: white;
  color: black;
}

.errors .alert {
  border: 1px red solid;
  border-radius: 15px;
  background-color: inherit;
  text-align: center;
  color: red;
  margin: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.nonealert {
  display: none;
}

@media (max-width: 350px) {
  .wrapper {
    margin: 10px auto;
  }

  .wrapper .card {
    margin: 10px;
  }
}
