/* Popup account form, with a CSS-only fallback when JavaScript is unavailable. */
.auth-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: min(490px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d5d1c0;
  border-top: 6px solid var(--gold);
  border-radius: 12px;
  box-shadow:
    0 25px 90px #18231738,
    0 0 0 100vmax #252921a6;
  overscroll-behavior: contain;
}
.auth-dialog[open],
.auth-dialog:target,
.auth-dialog[data-open="true"] {
  display: block;
}
.auth-dialog:focus {
  outline: none;
}
.auth-dialog:modal {
  box-shadow: 0 25px 90px #18231738;
}
.auth-dialog::backdrop {
  background: #252921a6;
  backdrop-filter: blur(4px);
}
.auth-modal-open,
body:has(.auth-dialog:target:not([hidden])),
body:has(.auth-dialog[data-open="true"]:not([hidden])) {
  overflow: hidden;
}
.entry-form {
  padding: 30px 36px 28px;
}
.entry-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.entry-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--plum);
  font: 800 27px/1 var(--heading);
  letter-spacing: -0.06em;
}
.entry-brand small {
  display: block;
  font:
    600 10px/1.2 "DM Sans",
    sans-serif;
  letter-spacing: 0.2em;
  margin-top: 6px;
}
.entry-brand img {
  width: 38px;
  height: 38px;
}
.entry-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.entry-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}
.entry-close:hover {
  background: var(--soft);
}
.entry-form h2 {
  font: 400 39px/1.1 var(--serif);
  letter-spacing: -0.04em;
  color: var(--plum);
  margin-bottom: 27px;
}
.entry-form .stack {
  gap: 12px;
}
.entry-form label:not(:first-of-type) {
  margin-top: 6px;
}
.entry-form label {
  font-size: 16px;
}
.entry-form input {
  min-height: 49px;
}
.auth-submit {
  margin-top: 12px;
  justify-content: space-between;
}
.entry-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  margin: 20px 0;
}
.entry-divider::before,
.entry-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.entry-switch {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin: 24px 0 0;
}
.entry-switch a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.password-field {
  position: relative;
}
.password-field:has(.password-toggle:not([hidden])) input {
  padding-right: 74px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 12px;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}
.password-toggle:hover {
  background: var(--soft);
}
@media (max-width: 480px) {
  .entry-form {
    padding: 24px;
  }
  .entry-brand-row {
    margin-bottom: 24px;
  }
  .entry-form h2 {
    font-size: 35px;
  }
}
