html,
body {
  min-height: 100%;
  margin: 0;
  color: #172018;
  background: #9fc875;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-shell {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(21, 33, 24, 0.2);
  background: rgba(247, 250, 236, 0.94);
  box-shadow: 0 18px 48px rgba(19, 40, 20, 0.22);
}

.auth-title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
}

.auth-copy {
  margin: 0 0 22px;
  color: #4e6247;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab,
.auth-button,
.auth-link-button {
  min-height: 42px;
  border: 1px solid #263b29;
  background: #263b29;
  color: #f5f7ed;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab {
  background: transparent;
  color: #263b29;
}

.auth-tab-active {
  background: #263b29;
  color: #f5f7ed;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 6px;
  color: #2d3c2a;
  font-size: 13px;
  font-weight: 700;
}

input {
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(38, 59, 41, 0.4);
  background: #fffef6;
  color: #172018;
  font: inherit;
  padding: 8px 10px;
}

input:focus {
  outline: 2px solid #5d8f3a;
  outline-offset: 2px;
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: #3f5635;
  line-height: 1.35;
}

.auth-message-error {
  color: #9b1c1c;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.auth-link,
.auth-link-button {
  color: #1c5d83;
  text-decoration: none;
}

.auth-link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.auth-small {
  color: #596d51;
  font-size: 12px;
  line-height: 1.45;
}
