.auth-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(23, 63, 74, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 63, 74, 0.035) 1px, transparent 1px),
    #fff8f1;
  background-size: 72px 72px;
}

.auth-header {
  display: flex;
  width: min(100% - 32px, 1180px);
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  gap: 20px;
}

.auth-header > a:last-child {
  display: inline-flex;
  align-items: center;
  color: #6f746f;
  font-size: 0.8125rem;
  font-weight: 720;
  gap: 8px;
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-header-actions > a {
  display: inline-flex;
  align-items: center;
  color: #6f746f;
  font-size: .8125rem;
  font-weight: 720;
  gap: 8px;
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 42px 16px 76px;
  place-items: center;
}

.auth-card {
  width: min(100%, 510px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #eadfd5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 63, 74, 0.11);
}

.auth-card-wide {
  width: min(100%, 720px);
}

.auth-card-heading {
  margin-bottom: 30px;
}

.auth-kicker {
  display: block;
  margin-bottom: 8px;
  color: #f0643b;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0 0 12px;
  color: #173f4a;
  font-size: clamp(2.15rem, 7vw, 3.2rem);
  font-weight: 830;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-card-heading p,
.auth-result > p {
  margin: 0;
  color: #6f746f;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
}

.auth-form-meta a,
.auth-card-footer a {
  color: #f0643b;
  font-size: 0.8125rem;
  font-weight: 760;
}

.auth-card-footer {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #eadfd5;
  color: #6f746f;
  font-size: 0.8125rem;
  text-align: center;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-full {
  grid-column: 1 / -1;
}

.auth-form-section {
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #eadfd5;
}

.auth-form-section legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: #173f4a;
  font-size: 0.8125rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.auth-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-form-section .form-message {
  margin-bottom: 14px;
}

.auth-card .panel-form select {
  width: 100%;
  min-height: 49px;
  padding: 11px 42px 11px 13px;
  border: 1px solid #dcd1c8;
  border-radius: 10px;
  appearance: none;
  outline: 0;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #173f4a 50%),
    linear-gradient(135deg, #173f4a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: #202522;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-card .panel-form select:focus {
  border-color: #f0643b;
  box-shadow: 0 0 0 3px rgba(240, 100, 59, 0.14);
}

.auth-card .panel-form select:disabled {
  background-color: #f5f1ed;
  color: #8a8e89;
  cursor: not-allowed;
}

.auth-result {
  text-align: center;
}

.auth-result-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: rgba(240, 100, 59, 0.12);
  color: #f0643b;
  place-items: center;
}

.auth-result-icon.is-success {
  border: 1px solid rgba(42, 145, 86, 0.22);
  background: rgba(42, 145, 86, 0.11);
  color: #23834f;
}

.auth-password-success {
  padding-block: clamp(34px, 6vw, 54px);
}

.auth-password-success h1 {
  max-width: 430px;
  margin-inline: auto;
}

.auth-password-success > p {
  max-width: 390px;
  margin-inline: auto;
}

.auth-result .panel-primary-action {
  margin-top: 26px;
}

@media (max-width: 680px) {
.auth-header {
    width: min(100% - 24px, 1180px);
  }

.auth-header > a:last-child {
    font-size: 0;
  }

.auth-main {
    padding: 20px 12px 44px;
    align-items: start;
  }

.auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

.form-grid {
    grid-template-columns: 1fr;
  }
}
.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.auth-terms {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px 11px;
}

.auth-terms input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: #f0643b;
}

.auth-terms input:focus {
  border-color: transparent;
  box-shadow: none;
}

.auth-terms small {
  grid-column: 2;
}

.auth-terms > span {
  line-height: 1.5;
}

.auth-terms a {
  color: #d94f29;
  font-weight: 720;
}

@media (max-width: 680px) {
  .auth-form-fields {
    grid-template-columns: 1fr;
  }
}
