[hidden] {
  display: none !important;
}

body.auth-pending {
  overflow: hidden;
}

body.auth-pending > header,
body.auth-pending > main,
body.auth-pending > footer {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: auto;
  padding: 28px;
  place-items: center;
  background:
    radial-gradient(circle at 12% 14%, rgba(244, 154, 56, .25), transparent 34rem),
    radial-gradient(circle at 88% 90%, rgba(54, 145, 103, .2), transparent 36rem),
    linear-gradient(145deg, #082b22, #104b3a);
}

.auth-card {
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: var(--green-dark);
  font-size: 15px;
}

.auth-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-heading .eyebrow {
  margin-bottom: 9px;
}

.auth-heading h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -.035em;
}

.auth-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 26px 0 20px;
  padding: 4px;
  border-radius: 11px;
  background: #edf2ed;
}

.auth-tab {
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-tab.active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 5px 14px rgba(11, 56, 43, .1);
}

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

.auth-form label {
  color: var(--muted);
}

.auth-optional {
  float: right;
  color: #8b9892;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.auth-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 132, 38, .13);
}

.password-field {
  position: relative;
  display: block;
  margin-top: 7px;
}

.auth-form .password-field input {
  margin-top: 0;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #66756e;
  cursor: pointer;
}

.password-toggle:hover {
  background: #edf2ed;
  color: var(--green-dark);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle-slash {
  display: none;
}

.password-toggle.is-visible .password-toggle-slash {
  display: block;
}

.auth-form .primary {
  margin-top: 3px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f8a64b, #ee8426);
  color: #102b22;
}

.auth-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.auth-link-button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: #176b55;
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  color: #d76e1e;
}

.auth-back-button {
  justify-self: center;
}

.auth-form-intro {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #edf4ef;
}

.auth-form-intro strong {
  color: var(--green-dark);
  font-size: 14px;
}

.auth-form-intro span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.auth-password-note {
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid var(--orange);
  background: #fff5e8;
  color: #5b655f;
  font-size: 11px;
  line-height: 1.5;
}

.auth-message {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #e5f1eb;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.45;
}

.auth-message.error {
  background: #f8e9e8;
  color: #7d2522;
}

.auth-email-notice {
  position: relative;
  display: grid;
  gap: 3px;
  margin: -6px 0 16px;
  padding: 11px 13px 11px 38px;
  border: 1px solid #f0c99f;
  border-radius: 8px;
  background: #fff7e8;
  color: #714217;
  font-size: 11px;
  line-height: 1.45;
}

.auth-email-notice::before {
  position: absolute;
  top: 11px;
  left: 13px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #f08a2d;
  color: #fff;
  content: '!';
  font-size: 11px;
  font-weight: 900;
}

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

.auth-email-notice strong,
.auth-email-notice span {
  display: block;
}

.auth-privacy {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.auth-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.auth-account span {
  max-width: 160px;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 700px) {
  .auth-gate {
    align-items: start;
    padding: 16px;
  }

  .auth-card {
    margin: 12px 0;
    padding: 25px 20px;
    border-radius: 18px;
  }

  .auth-heading h1 {
    font-size: 35px;
  }

  .auth-account span {
    display: none;
  }
}
