.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 50px;
  max-width: 400px;
  max-height: 750px;
  min-height: 730px;
  min-width: 400px;
  padding: 10px 20px;;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.login-form h1 {
  margin-top: 20px;
}

.login-form img {
  height: 150px;
  width: auto;
  object-fit: cover;
}

form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

h1 {
  text-align: center;
  margin-top: 0;
}

#sys-msg {
  margin-top:10px;
  text-align: center;
}

.login-field {
  width:100%;
}

.login-field i {
  color: var(--body-color);
}

.login-link {
  margin-top: 10px;
}

.login-link a {
  font-weight: bold;
  color: var(--body-bg);
}

label {
  display: block;
  margin-bottom: 10px;
}

input[type="text"], input[type="password"], input[type="email"] {
  width: 100%;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

button[type="submit"] {
  background-color: var(--input-button-def);
  color: white;
  padding: 10px 20px;
  margin: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button[type="submit"]:hover {
  background-color: var(--body-bg);
}

/* Style for a progress bar with a red-to-green gradient */
#progress-gauge {
  background-color: #ddd; /* Gray background */
  width: 100%; /* Set the width to 100% */
}
#progress-gauge::-webkit-progress-bar {
  background-color: #ddd; /* Gray background */
}
#progress-gauge::-webkit-progress-value {
  background-color: linear-gradient(to right, red, yellow, green); /* Red-to-green gradient */
}
#progress-gauge::-moz-progress-bar {
  background-color: linear-gradient(to right, red, yellow, green); /* Red-to-green gradient */
}

#progress-gauge-label {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.password-rules {
  top: 40px;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.8rem;
}

.password-rule {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.password-rule-check {
  color: green;
  margin-right: 5px;
  font-weight:bold;
  font-size: 1.5rem;
}

.password-rule-check.incomplete {
  color: lightgray;
}

.password-rule-text {
  margin-right: 5px;
  flex: 1;
}

.horiz-check {
  display: flex;
  align-items: baseline;
  margin-top: 5px;
  font-size: .8rem;
}

@media (max-width: 768px) {
  body {
    line-height: 1.2em;
  }

  .login-form {
    margin: 10px 10px;
    max-width: 350px;
    max-height: 750px;
    min-height: 600px;
    min-width: 300px;
    padding: 10px;
  }
  
  .login-form img {
    height: 80px;
    width: auto;
    object-fit: cover;
  }

  .login-form h1 {
    font-size: 24px;
    margin-top: 5px;
  }

  .login-field {
    font-size: .8rem;
  }

  #sys-msg {
    margin-top:5px;
    font-size: .9rem;
    text-align: center;
  }

  #progress-gauge-label {
    font-size: 0.7rem;
  }

  .password-rules {
    top: 30px;
    font-size: 0.7rem;
  }
  
  .password-rule-check {
    font-size: .8rem;
  }
  
  .password-rule-text {
    font-size: 0.7rem;
  }
  
  progress {
    height: 10px;
  }

  button[type="submit"] {
    padding: 5px 10px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: .8rem;
  }
  
}
