:root {
  color-scheme: light;
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: #203329;
  background: #f5f7f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  width: min(1220px, calc(100% - 64px));
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #214e3b;
  font:
    700 clamp(22px, 3vw, 32px) / 1.2 Georgia,
    serif;
  letter-spacing: -0.045em;
}
nav {
  border: 1px solid #ccd7ca;
  display: flex;
  border-radius: 9px;
  overflow: hidden;
}
nav a {
  padding: 6px 12px;
  color: #365640;
  text-decoration: none;
}
nav [aria-current] {
  color: white;
  background: #285741;
}
main {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.07fr;
  background: white;
  border: 1px solid #d6dfd2;
  border-radius: 16px;
  overflow: hidden;
  min-height: clamp(475px, 72vh, 740px);
}
.form-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}
.form-inner {
  width: min(100%, 350px);
}
.section {
  color: #43674c;
  font-weight: 650;
  margin: 0 0 12px;
}
h1 {
  font:
    500 clamp(42px, 5vw, 66px) / 1.05 Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 0;
}
.intro {
  color: #536359;
  line-height: 1.6;
  margin: 14px 0 27px;
}
form {
  display: grid;
}
label {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}
input {
  font: inherit;
  background: white;
  color: inherit;
  width: 100%;
  min-height: 45px;
  border: 1px solid #aebcaf;
  border-radius: 7px;
  padding: 8px 12px;
  margin-bottom: 16px;
}
button {
  font:
    600 16px/1.5 system-ui,
    sans-serif;
  min-height: 46px;
  background: #214e3b;
  color: white;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 5px;
}
.again {
  display: inline-block;
  margin-top: 24px;
  color: #214e3b;
  font-weight: 650;
}
button:hover {
  background: #316249;
}
button.demo {
  margin-top: 10px;
  background: white;
  color: #214e3b;
  border: 1px solid #aebcaf;
}
button.demo:hover {
  background: #f0f5ed;
}
.error {
  color: #94351e;
  margin: 0 0 13px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ab7b28;
  outline-offset: 2px;
}
aside {
  display: flex;
  align-items: flex-end;
  color: white;
  background:
    linear-gradient(0deg, #102d22d9, transparent 42%),
    url("/assets/rice.jpg") center/cover;
}
.caption {
  padding: 28px;
  display: grid;
  gap: 3px;
}
.caption span {
  font:
    500 26px/1.2 Georgia,
    serif;
}
[lang="ps"] .brand,
[lang="ps"] h1 {
  letter-spacing: normal;
  line-height: 1.6;
}
@media (max-width: 700px) {
  header,
  main {
    width: calc(100% - 32px);
  }
  header {
    padding: 16px 0;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand {
    gap: 6px;
  }
  nav a {
    font-size: 14px;
    padding: 6px 8px;
  }
  main {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .form-panel {
    padding: 34px 23px;
  }
  aside {
    min-height: 120px;
    background-position: center 65%;
  }
  .caption {
    padding: 14px 20px;
  }
  .caption span {
    font-size: 20px;
  }
}
