section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-image: url('../images/precise-hq-4.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

section:before {
  content: "";
  background-color: #0009;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

.form-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 400px;
  height: 450px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(15px);
}

h2 {
  color: #fff;
  text-align: center;
  font-size: 1.5em;
}

input[type="checkbox"]:checked {
  accent-color: #ec1303;
}

.inputbox {
  position: relative;
  border-bottom: 2px solid #fff;
  margin: 30px auto;
  width: 310px;
}

.inputbox label {
  transform: translateY(-50%);
  color: #fff;
  font-size: 1em;
  pointer-events: none;
  transition: .5s;
  position: absolute;
  top: 50%;
  left: 5px;
}

input:focus ~ label,
input:valid ~ label {
  top: -5px;
}

.inputbox input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  padding: 0 44px 0 5px; /* space for right icon */
  color: #fff;
  width: 100%;
  height: 50px;
}

.inputbox .icon-right {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}

.inputbox input#password {
  padding-right: 44px;
}

.inputbox .icon-right:focus {
  outline: none;
  outline-offset: 2px;
  border-radius: 4px;
}

section { position: relative; }
.form-box { position: relative; z-index: 1; }

button {
  width: 80%;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
}

#submit-button {
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  background: #fff;
  border: none;
  color: #000;
}

#submit-button:hover {
  background: transparent;
  border: 3px solid #fff;
  color: #fff;
}

.form-value button {
  display: block;
  margin: 20px auto;
}

.forget {
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin: 0px 0px 0px 45px;
  font-size: .9em;
}

.forget label { color: #fff; }
.forget label input { margin-right: 3px; }

.forget label a,
.forget a {
  color: #fff;
  text-decoration: none;
}
.forget label a:hover { text-decoration: underline; }

.register {
  font-size: .9em;
  color: #fff;
  text-align: center;
  margin: 25px 0 10px;
}

.register p a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}
.register p a:hover { text-decoration: underline; }

.card.card--hover {
  border-color:#e00b01;
  transform:translateY(-3px);
  transition:transform .15s ease,border-color .15s ease;
}

#togglePassword { cursor:pointer; user-select:none; }

.inputbox input:-webkit-autofill,
.inputbox input:-webkit-autofill:hover,
.inputbox input:-webkit-autofill:focus,
.inputbox input:-webkit-autofill:active {
  /* Overpaint Chrome's fill with a dark, *nearly invisible* overlay */
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0.55) inset !important;
  box-shadow:         0 0 0 1000px rgba(0,0,0,0.55) inset !important;

  /* Keep underline and text readable */
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  border-bottom: 2px solid #fff !important;

  /* Prevent background color animation "flash" */
  transition: background-color 9999s ease-in-out 0s !important;

  /* Make sure the input itself doesn't repaint oddly */
  background-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

/* prevent the blue flash on focus/hover */
.inputbox input:-webkit-autofill,
.inputbox input:-webkit-autofill:hover,
.inputbox input:-webkit-autofill:focus {
  transition: background-color 9999s ease-in-out 0s;
}

.inputbox i.bi.bi-envelope {
  pointer-events: none; /* ensures click-through */
}

:root { color-scheme: dark; }