@font-face {
  font-family: 'Neue Haas Unica';
  src: local('Neue Haas Unica'),
       local('NeueHaasUnica-Regular'),
       url('/login/fonts/NeueHaasUnica-Regular.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Haas Unica';
  src: local('Neue Haas Unica'),
       local('NeueHaasUnica-Medium'),
       url('/login/fonts/NeueHaasUnica-Medium.ttf') format('truetype');
  font-display: swap;
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Haas Unica';
  src: local('Neue Haas Unica'),
       local('NeueHaasUnica-ExtraBold'),
       url('/login/fonts/NeueHaasUnica-ExtraBold.ttf') format('truetype');
  font-display: swap;
  font-weight: 800;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  font-family: "Neue Haas Unica", sans-serif;
}
::selection {
  color: #fff;
  background: rgb(40, 77, 121);
}
.wrapper form {
  margin: 10% 0;
}
form .field {
  width: 100%;
  margin-bottom: 20px;
}
form .field.shake {
  animation: shake 0.3s ease-in-out;
}
@keyframes shake {
  0%,
  100% {
    margin-left: 0px;
  }
  20%,
  80% {
    margin-left: -12px;
  }
  40%,
  60% {
    margin-left: 12px;
  }
}
form .field .input-area {
  height: 50px;
  width: 100%;
  position: relative;
}
form input {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 45px;
  font-size: 18px;
  background: white;
  caret-color: rgb(40, 77, 121);
  border-radius: 5px;
  border: 1px solid #bfbfbf;
  border-bottom-width: 2px;
  transition: all 0.2s ease;
}
form .field input:focus,
form .field.valid input {
  border-color: rgb(40, 77, 121);
}
form .field.shake input,
form .field.error input {
  border-color: #dc3545;
}
.field .input-area i {
  position: absolute;
  top: 50%;
  font-size: 18px;
  pointer-events: none;
  transform: translateY(-50%);
}
.input-area .icon {
  left: 15px;
  color: #bfbfbf;
  transition: color 0.2s ease;
}
.input-area .error-icon {
  right: 15px;
  color: #dc3545;
}
form input:focus ~ .icon,
form .field.valid .icon {
  color: rgb(40, 77, 121);
}
form .field.shake input:focus ~ .icon,
form .field.error input:focus ~ .icon {
  color: #bfbfbf;
}
form input::placeholder {
  color: black;
  font-size: 17px;
}
form .field .error-txt {
  color: #dc3545;
  text-align: left;
  margin-top: 5px;
}
form .field .error {
  display: none;
}
form .field.shake .error,
form .field.error .error {
  display: block;
}
form .pass-txt {
  text-align: left;
  margin-top: -10px;
}
.wrapper a {
  color: rgb(40, 77, 121);
  text-decoration: none;
}
.wrapper a:hover {
  text-decoration: underline;
}
form input[type="button"] {
  height: 50px;
  margin-top: 30px;
  color: #fff;
  padding: 0;
  border: none;
  background: rgb(40, 77, 121);
  cursor: pointer;
  border-bottom: 4px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 100px;
}

.login-error {
  color: red;
}
.login_message {
  color: white;
}
#login-message {
  font-size: 18px;
  margin-bottom: 20px;
}
.loader-container {
  display: none;
  margin-top: 20px;
  justify-content: center; /* Align in center */
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid rgb(40, 77, 121);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}