:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f3f3ef;
  background: #0a0a09;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #0a0a09;
}

main {
  width: min(100%, 360px);
  transform: translateY(-3vh);
}

h1 {
  margin: 0 0 54px;
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
}

form {
  width: 100%;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border-bottom: 1px solid #464642;
  transition: border-color 160ms ease;
}

.password-field:focus-within {
  border-color: #f3f3ef;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  padding: 0;
  color: #f3f3ef;
  background: transparent;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

input::placeholder {
  color: #666661;
  letter-spacing: 0.02em;
}

button {
  height: 42px;
  border: 0;
  padding: 0;
  color: #8a8a84;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

button:hover,
button:focus-visible {
  color: #f3f3ef;
  transform: translateX(2px);
  outline: 0;
}

button:disabled {
  cursor: wait;
  opacity: 0.35;
}

#login-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #a06c68;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  main {
    width: 100%;
  }

  h1 {
    margin-bottom: 44px;
  }
}
