@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.custom-background {
  font-family: 'Sawarabi Gothic', sans-serif;
  display: flex;
  flex-direction: column;
  background-color: GhostWhite;
  /* Set default background color */
  color: #212427;
}

@media (prefers-color-scheme: dark) {
  .custom-background {
    background-color: #212427;
  }

}

h3 {
  font-family: 'Sawarabi Gothic', sans-serif;
  color: #212427;
}

body {
  font-family: 'Sawarabi Gothic', sans-serif;
  display: flex;
  flex-direction: column;
  color: #212427;
}

form {
  border: 3px solid #f1f1f1;
  background-color: WhiteSmoke;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.loginform {
  font-family: 'Sawarabi Gothic', sans-serif;
  margin: auto;
  width: 60%;
  padding-top: 105px;
}

input[type=text],
input[type=password] {
  font-family: 'Sawarabi Gothic', sans-serif;
  width: 100%;
  padding: 15px 20px;
  margin: 15px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background-color: #009879;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

button:hover {
  opacity: 0.8;
}

.imgcontainer {
  text-align: center;
  margin: 24px 0 15px 0;
  padding-top: 15px;
}

img.logo {
  width: auto;
  height: auto;
  border-radius: 0%;
}

.form-content {
  margin: auto;
  padding-top: 20px;
  padding-bottom: 50px;
  width: 90%;
}

.error {
  font-family: 'Sawarabi Gothic', sans-serif;
  text-align: center;
  margin: auto;
  padding: 15px;
  font-weight: bold;
  color: red;
}

span.psw {
  float: right;
  padding-top: 16px;
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
    display: block;
    float: none;
  }
}