@font-face {
  font-family: Urbanist;
  src: url('../fonts/urbanist.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Urbanist, system-ui, sans-serif;
  background: #e6e8d5;
  color: #1d1d1b;
  font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
main {
  display: grid;
  gap: 20px;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 26px;
  background: #eeefdf;
}
h1, p { margin: 0; }
h1 { font-size: 28px; font-weight: 500; }
.heading, .field { display: grid; gap: 8px; }
.heading p { color: #66685c; font-size: 13px; line-height: 19px; }
.heading .brand { font-size: 10px; line-height: normal; font-weight: 600; text-transform: uppercase; }
form { display: grid; gap: 16px; }
label { font-weight: 500; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
input {
  width: 100%;
  height: 46px;
  border: 1px solid #e2e3d3;
  border-radius: 14px;
  background: #fbfbf5;
  padding: 12px;
}
.password { position: relative; }
.password input { padding-inline-end: 56px; }
.password button { position: absolute; top: 0; bottom: 0; right: 0; width: 48px; background: transparent; border: 0; }
.password img { margin-inline: auto; }
.submit {
  padding: 12px 20px;
  border-radius: 22px;
  border: 0;
  background: #2b2b2b;
  color: white;
  font-weight: 500;
}
.error { border-radius: 20px; background: #fce9e9; padding: 12px 16px; }
:focus-visible { outline: 2px solid #5a57c7; outline-offset: 3px; }
