:root {
  color: #1f281c;
  background: #f2efe4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, #e3d99d 0, transparent 27rem),
    radial-gradient(circle at 90% 90%, #d5dfbf 0, transparent 24rem),
    #f2efe4;
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.card {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgb(50 66 42 / 14%);
  border-radius: 1.5rem;
  background: rgb(255 254 248 / 92%);
  box-shadow: 0 1.5rem 4rem rgb(66 64 41 / 13%);
}

.mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 50%;
  color: #fffced;
  background: #455936;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.eyebrow,
.success-label {
  margin: 0 0 0.45rem;
  color: #6b792b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #26351f;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
}

h2 {
  font-size: 1.65rem;
}

.intro {
  margin: 1rem 0 2rem;
  color: #5f665a;
  line-height: 1.6;
}

form {
  display: grid;
  gap: 0.65rem;
}

label {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #bdc3b7;
  border-radius: 0.65rem;
  color: #1f281c;
  background: #fff;
  outline: none;
}

input:focus {
  border-color: #50683f;
  box-shadow: 0 0 0 3px rgb(80 104 63 / 16%);
}

button {
  min-height: 2.9rem;
  border: 0;
  border-radius: 0.65rem;
  color: #fff;
  background: #455936;
  cursor: pointer;
  font-weight: 750;
}

form > button {
  margin-top: 0.75rem;
}

button:hover {
  background: #34462a;
}

button:focus-visible {
  outline: 3px solid rgb(80 104 63 / 35%);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.message {
  min-height: 1.3em;
  margin: 0.35rem 0 0;
  color: #53614a;
  font-size: 0.88rem;
}

.error {
  color: #a23324;
}

.result {
  margin-top: 2rem;
}

.password-reset {
  margin-top: 2rem;
}

.reset-explanation {
  margin: 1rem 0;
  color: #5f665a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.credential-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin-top: 1rem;
}

code {
  overflow: auto;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd0c6;
  border-radius: 0.65rem;
  background: #f4f5ef;
  font-size: 0.9rem;
  white-space: nowrap;
}

.secondary {
  padding-inline: 1rem;
}

.warning {
  margin-top: 1.3rem;
  padding: 1rem;
  border-left: 4px solid #b99224;
  border-radius: 0.3rem;
  color: #63541e;
  background: #fbf4d9;
  font-size: 0.9rem;
  line-height: 1.5;
}

.warning strong {
  display: block;
}

.text-button {
  min-height: auto;
  margin-top: 1.2rem;
  padding: 0;
  border-radius: 0;
  color: #455936;
  background: none;
  text-decoration: underline;
}

.text-button:hover {
  color: #26351f;
  background: none;
}

.privacy {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid #e2e2d9;
  color: #74796f;
  font-size: 0.78rem;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

@media (max-width: 440px) {
  .credential-row {
    grid-template-columns: 1fr;
  }
}
