:root {
  color-scheme: light;
  font-family: "Segoe UI", sans-serif;
  background: #f4f1ea;
  color: #1d1a16;
}

body {
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #1d1a16;
  color: #fff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

header a {
  color: #fff;
}

main {
  max-width: 720px;
  padding: 24px 20px 48px;
}

h1 {
  margin-top: 0;
}

p, li {
  line-height: 1.5;
}

form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

label {
  display: grid;
  gap: 6px;
}

input[type="email"],
input[type="password"] {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9c2b6;
  border-radius: 8px;
  background: #fff;
}

button {
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #8c2f39;
  color: #fff;
}

.error {
  color: #8c2f39;
  font-weight: 700;
}

.note {
  margin-top: 32px;
  color: #5c564e;
}
