* {
  box-sizing: border-box;
}
body {
  font-family: system-ui;
  background: #f4f6fa;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
form {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 10px;
  padding: clamp(24px, 5vw, 32px);
  width: min(480px, calc(100% - 40px));
  display: grid;
  gap: 14px;
}
h1 {
  margin: 0;
  font-size: 24px;
}
.login-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.login-heading .locale-switch {
  margin: 0;
  gap: 8px;
}
.login-heading .locale-switch-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.login-heading .locale-switch select {
  min-height: 40px;
}
label {
  display: grid;
  gap: 5px;
}
input,
button {
  font: inherit;
  padding: 10px;
  border: 1px solid #c8d3e4;
  border-radius: 6px;
}
button {
  background: #2468c4;
  color: #fff;
  border: 0;
  cursor: pointer;
}
#error {
  color: #a22;
  min-height: 1.4em;
}
