:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

.authBody {
  background: #eef1ec;
  color: #1e2921;
  margin: 0;
  min-height: 100vh;
}

.authShell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 18px;
}

.authPanel {
  background: #fff;
  border: 1px solid #cbd4c8;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgb(35 54 37 / 9%);
  max-width: 860px;
  padding: 30px;
  width: 100%;
}

.authHeader {
  border-bottom: 1px solid #dde3db;
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.authEyebrow {
  color: #2f6f3e;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.authHeader h1,
.authPanel h1 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.authHeader p:last-child,
.authPanel > p {
  color: #667066;
  line-height: 1.5;
  margin: 8px 0 0;
}

.authForm {
  display: grid;
  gap: 18px;
}

.authForm[hidden],
.authMessage[hidden] {
  display: none;
}

.authForm label {
  display: grid;
  gap: 7px;
}

.authForm label > span {
  color: #445049;
  font-size: 13px;
  font-weight: 700;
}

.authForm input {
  background: #fff;
  border: 1px solid #aeb9ad;
  border-radius: 4px;
  color: #172019;
  font: inherit;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}

.authForm input:focus {
  border-color: #2f6f3e;
  box-shadow: 0 0 0 3px rgb(47 111 62 / 15%);
  outline: 0;
}

.authPrimary,
.authLinkButton,
.authSecondary {
  align-items: center;
  background: #2f6f3e;
  border: 1px solid #2f6f3e;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  text-decoration: none;
}

.authSecondary {
  background: #fff;
  border-color: #7c897e;
  color: #334039;
}

.authTextLink {
  color: #2f6f3e;
  font-size: 14px;
  font-weight: 700;
  justify-self: start;
}

.authPrimary:hover,
.authLinkButton:hover {
  background: #245a31;
}

.authPrimary:disabled {
  cursor: wait;
  opacity: 0.62;
}

.authMessage,
.authNotice {
  background: #f2f6ef;
  border-left: 4px solid #4c7e48;
  color: #334039;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
  padding: 11px 13px;
}

.authMessage.error {
  background: #fff1ef;
  border-color: #a44232;
  color: #772f25;
}

.authForm input[aria-invalid="true"] {
  border-color: #a44232;
  box-shadow: 0 0 0 3px rgb(164 66 50 / 14%);
}

.setupForm fieldset {
  border: 0;
  border-top: 1px solid #d8dfd5;
  margin: 0;
  padding: 17px 0 0;
}

.setupForm legend {
  color: #263228;
  font-size: 15px;
  font-weight: 800;
  padding: 0 10px 0 0;
}

.setupForm legend strong {
  color: #2f6f3e;
  font-size: 11px;
  margin-left: 8px;
  text-transform: uppercase;
}

.accountFields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accountAdminShell {
  align-items: flex-start;
  padding-top: 46px;
}

.accountAdminPanel {
  max-width: 980px;
}

.accountAdminBody .moduleNav {
  background: #fff;
  border-bottom: 1px solid #d7dfd4;
  padding: 8px 14px;
}

.accountAdminBody .moduleNav > a {
  color: #354238;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.accountAdminBody .moduleNav > a:hover {
  background: #edf3e8;
}

.accountEmailTable {
  border: 1px solid #d5ddd3;
}

.accountEmailRequirement {
  margin-bottom: 18px;
}

.accountEmailHeader,
.accountEmailRow {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(240px, 1.6fr);
  padding: 12px 14px;
}

.accountEmailHeader {
  background: #f0f4ee;
  color: #445049;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.accountEmailRow + .accountEmailRow {
  border-top: 1px solid #dce3da;
}

.accountEmailRow > span {
  font-size: 14px;
}

.authActions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.passwordRule {
  color: #667066;
  font-size: 12px;
  margin: -4px 0 0;
}

@media (max-width: 700px) {
  .authShell {
    align-items: flex-start;
    padding: 14px;
  }

  .authPanel {
    padding: 22px 18px;
  }

  .authHeader h1,
  .authPanel h1 {
    font-size: 24px;
  }

  .accountFields {
    grid-template-columns: 1fr;
  }

  .accountEmailHeader {
    display: none;
  }

  .accountEmailRow {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .accountEmailRow > span {
    color: #667066;
  }

  .authActions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
