@font-face {
  font-display: swap;
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/noto-sans-v39-latin-regular.woff2') format('woff2');
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  font-family: 'Noto Sans', sans-serif;
  color: rgba(0, 0, 0, 0.87);
}

.container {
  background: #fff;
  padding: 2.5rem 2rem;
  margin: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 18.75rem;
  min-height: 28.8rem;
}

.logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

#title {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  min-height: 2.7rem;
}

.lang-switch {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

.lang-switch a {
  text-decoration: none;
  transition:
    color 0.2s,
    text-decoration 0.2s;
  cursor: pointer;
}

.lang-switch a:hover {
  color: rgb(0, 111, 191);
  text-decoration: underline;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
}

.input-group img {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.56);
}

.input-group input {
  padding: 0.7rem 2.5rem 0.7rem 2.2rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  width: 14rem;
}

#show-pass {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.56);
  font-size: 1rem;
}

button[type='submit'] {
  padding: 0.7rem;
  background: rgb(0, 90, 153);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

button[type='submit']:hover {
  background: rgb(0, 111, 191);
}

#authfail {
  visibility: hidden;
  max-width: 296px;
  color: rgb(204, 35, 21);
  height: 1.5rem;
}

#authfail.show {
  visibility: unset;
}
