:root {
  color-scheme: light;
  --paper: #f3efe4;
  --ink: #162523;
  --muted: #586664;
  --teal: #087f74;
  --coral: #e56b4a;
  --line: rgba(22, 37, 35, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(120deg, transparent 0 68%, rgba(8, 127, 116, 0.08) 68%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(22, 37, 35, 0.045) 40px);
  font-family: "Avenir Next", "Gill Sans", sans-serif;
}

main {
  width: min(980px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: clamp(56px, 10vw, 140px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.identity > p:last-child {
  max-width: 390px;
  margin: 30px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
}

h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

label {
  display: block;
  margin: 18px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 127, 116, 0.16);
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--teal);
}

.error {
  margin: -10px 0 20px;
  color: #a23b24;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  main {
    min-height: auto;
    padding: 56px 0;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 5.5rem);
  }

  form {
    padding: 26px 22px;
  }
}