body.hash-auth-active {
  background: #f6fbff;
}

body.hash-auth-active > #main,
body.hash-auth-active > #footer,
body.hash-auth-active > #modal,
body.hash-auth-active > #notes,
body.hash-auth-active > #toast {
  display: none !important;
}

body.hash-auth-active > #fullstack-root {
  position: fixed;
  inset: var(--hash-auth-top, 120px) 0 0;
  z-index: 10000;
  overflow-y: auto;
}

.hash-auth-layer {
  min-height: 100%;
  color: #07316f;
  background: transparent;
  font-family: "DM Sans", "Nunito", sans-serif;
}

.auth-locale-row {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
}

.auth-locale-control {
  border: 0;
  padding: 3px 0;
  color: #07316f;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-status {
  width: min(100%, 850px);
  margin: 0 auto 18px;
}

.auth-password-link {
  display: block;
  margin: 8px auto 0;
}

.auth-verification-actions {
  justify-content: space-between;
  margin-top: 12px;
}

.hash-auth-top {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid #d9edf6;
  background: #ffffffd9;
}

.hash-auth-top .brand {
  margin-inline-end: auto;
}

.hash-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: #07316f !important;
  font: 900 19px "Nunito", sans-serif !important;
  text-decoration: none;
}

.hash-auth-brandmark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 14px;
  background: #08b8ed;
  box-shadow: 0 4px 0 #087bb5;
  color: #fff;
  font: 900 15px "Fredoka", "Nunito", sans-serif;
  transform: rotate(-4deg);
}

.hash-auth-top a,
.hash-auth-top button {
  color: #07316f;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.hash-auth-top button,
.hash-auth-text-button {
  border: 0;
  padding: 8px 10px;
  background: transparent;
  cursor: pointer;
}

.hash-auth-content {
  width: min(100% - 32px, 760px);
  margin: 34px auto 60px;
}

.hash-auth-heading {
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: center;
}

.hash-auth-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  border-radius: 22px;
  background: #08b8ed;
  box-shadow: 0 6px 0 #087bb5;
  color: #fff;
  font: 900 21px "Fredoka", "Nunito", sans-serif;
  transform: rotate(-4deg);
}

.hash-auth-heading h1 {
  margin: 0 0 8px;
  color: #07316f;
  font: 900 clamp(28px, 5vw, 42px)/1.12 "Nunito", sans-serif;
}

.hash-auth-heading p {
  margin: 0;
  color: #55718b;
  line-height: 1.55;
}

.hash-auth-card {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #dbeaf1;
  border-radius: 24px;
  background: #fffefd;
  box-shadow: 0 18px 50px #0b396319;
}

.hash-auth-card h2 {
  margin: 0 0 4px;
  color: #07316f;
  font: 900 23px/1.2 "Nunito", sans-serif;
}

.hash-auth-card p {
  margin: 0 0 4px;
  color: #55718b;
  line-height: 1.5;
}

.hash-auth-card label:not(.hash-auth-check) {
  margin-top: 4px;
  color: #07316f;
  font-weight: 800;
}

.hash-auth-card .input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bfd3df;
  border-radius: 11px;
  background: #fff;
  color: #07316f;
  font: inherit;
}

.hash-auth-card .btn {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #07316f;
  color: #fff;
  font: 800 15px "Nunito", sans-serif;
  cursor: pointer;
}

.hash-auth-card .btn.secondary {
  border: 1px solid #bfd3df;
  background: #f6fcff;
  color: #07316f;
}

.hash-auth-card .btn:disabled,
.hash-auth-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hash-auth-text-button {
  color: #087bb5;
  font: 800 14px "Nunito", sans-serif;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hash-auth-card .auth-divider {
  margin: 4px 0;
  color: #55718b;
  text-align: center;
}

.hash-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #314f6b;
  font-size: 14px;
  line-height: 1.5;
}

.hash-auth-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #087bb5;
}

.hash-auth-note {
  padding: 12px;
  border-radius: 12px;
  background: #effaff;
  color: #55718b !important;
  font-size: 13px;
}

.hash-auth-message {
  width: min(100%, 520px);
  margin: 0 auto 12px !important;
  padding: 12px 15px;
  border: 1px solid #b8e7cc;
  border-radius: 12px;
  background: #f1fff6;
  color: #135f39 !important;
  font-size: 14px;
}

.hash-auth-message.error {
  border-color: #f0bec8;
  background: #fff4f6;
  color: #85263f !important;
}

.hash-auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hash-auth-code {
  font-size: 23px !important;
  letter-spacing: 0.4em;
  text-align: center;
}

.hash-auth-loading {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: #07316f;
  font-weight: 800;
}

[dir="rtl"] .hash-auth-top {
  flex-direction: row-reverse;
}

[dir="rtl"] .hash-auth-actions {
  flex-direction: row-reverse;
}

@media (max-width: 540px) {
  .hash-auth-top {
    min-height: 58px;
    gap: 8px;
    padding-inline: 14px;
  }
  .hash-auth-top a,
  .hash-auth-top button {
    font-size: 12px;
  }
  .hash-auth-content {
    margin-top: 22px;
  }
  .hash-auth-card {
    border-radius: 18px;
  }
}
