@font-face {
  font-family: Manrope;
  src: url("/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  font:
    400 16px/24px Manrope,
    system-ui,
    sans-serif;
  color: #181818;
  background: #fafafa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 24px;
}
.brand {
  width: min(57vw, 544px);
  height: auto;
  display: block;
  color: #181818;
}
.switch {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  top: max(24px, env(safe-area-inset-top));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #646464;
  text-decoration: none;
  border-radius: 8px;
}
.switch:hover {
  background: #ededed;
  color: #181818;
}
:focus-visible {
  outline: 2px solid #ab302c;
  outline-offset: 4px;
}
.form {
  width: min(100%, 352px);
}
.form .brand {
  width: 164px;
  margin: 0 0 40px;
}
form,
label {
  display: grid;
  gap: 8px;
}
form {
  gap: 24px;
}
label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
input,
button {
  font: inherit;
}
input {
  background: #ededed;
  border: 0;
  border-radius: 8px;
  color: #181818;
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
}
button {
  border: 0;
  background: #181818;
  color: white;
  border-radius: 8px;
  min-height: 48px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: #313131;
}
button:active,
.switch:active {
  transform: scale(0.98);
}
.error {
  color: #a4312c;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}
@media (max-width: 600px) {
  .brand {
    width: 78vw;
  }
  .switch {
    right: 12px;
    top: 12px;
  }
}
