/* One compact authentication experience across the website. */
.auth-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 30px 26px 22px;
  border: 1px solid #e7d5bd;
  border-radius: 24px;
  background: #fffbf5;
  color: #382b25;
  box-shadow: 0 24px 100px #40251b50;
  overflow-y: auto;
  overscroll-behavior: contain;
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
.auth-dialog::backdrop {
  background: #30201bbc;
  backdrop-filter: blur(4px);
}
body:has(.auth-dialog[open]) {
  overflow: hidden;
}
.auth-dialog * {
  box-sizing: border-box;
}
.auth-dialog .auth-close {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #7a151b;
  box-shadow: none;
  font-size: 27px;
  border-radius: 50%;
  cursor: pointer;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7a151b;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 750;
  margin-bottom: 18px;
}
.auth-brand > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #f5e6cf;
  border-radius: 13px;
  font-size: 23px;
}
.auth-dialog h2 {
  font: 30px/1.18 Georgia, serif;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: #65151b;
  outline-offset: 4px;
}
.auth-context:empty {
  display: none;
}
.auth-context {
  font-size: 12px;
  color: #786354;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.auth-intro {
  color: #746155;
  margin: 0 0 20px;
  font-size: 14px;
}
.auth-dialog button {
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: none;
  transform: none;
}
.auth-dialog button:disabled {
  cursor: default;
  opacity: 0.6;
}
.auth-dialog .auth-primary {
  width: 100%;
  min-height: 46px;
  margin: 12px 0 0;
  border: 1px solid #7a151b;
  border-radius: 12px;
  background: #7a151b;
  color: #fffaf3;
  font-weight: 650;
  padding: 11px 14px;
}
.auth-dialog .auth-primary:hover:not(:disabled) {
  background: #5f1117;
}
.auth-dialog .auth-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  margin: 10px 0;
  padding: 12px 13px;
  border: 1px solid #dfc8b0;
  border-radius: 12px;
  background: white;
  color: #64252a;
  text-align: left;
  font-weight: 600;
}
.auth-choice > span:last-child {
  margin-left: auto;
}
.auth-dialog .auth-choice:hover {
  background: #f6eadb;
  border-color: #b66a50;
}
.auth-google {
  min-height: 44px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.auth-google > button {
  width: 100%;
  min-height: 44px;
  color: #614238;
  background: white;
  border: 1px solid #dfc8b0;
  border-radius: 10px;
}
.auth-dialog .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8a7464;
  margin: 14px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #e8d9c5;
  flex: 1;
}
.auth-dialog form {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.auth-dialog label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 13px 0 5px;
}
.auth-dialog input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  margin-top: 6px;
  border: 1px solid #cbb7a3;
  border-radius: 10px;
  background: white;
  color: #382b25;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.auth-dialog .auth-text {
  display: inline-block;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #7a151b;
  padding: 6px 0;
  margin: 3px 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
.auth-dialog .auth-note {
  clear: both;
  font-size: 12px;
  line-height: 1.55;
  color: #776454;
  margin: 8px 0;
}
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #ecddc9;
  margin-top: 18px;
  padding-top: 12px;
  gap: 3px;
}
.auth-terms {
  font-size: 10.5px;
  line-height: 1.6;
  color: #887566;
  text-align: center;
  margin: 16px 0 0;
}
.auth-terms a {
  color: #78442f;
}
.auth-status {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.auth-status:not(:empty) {
  padding: 11px 12px;
  background: #eef1e5;
  color: #3c5539;
  border-radius: 10px;
  margin: 14px 0 0;
}
.auth-status.auth-error {
  background: #fff0ec;
  color: #862d2a;
}
.auth-dialog :focus-visible {
  outline: 3px solid #c48a24;
  outline-offset: 3px;
}
.auth-welcome {
  max-width: 650px;
  padding: 28px !important;
  background: linear-gradient(120deg, #fff9ee, #f7ead7) !important;
  border: 1px solid #ead7bb;
  border-radius: 20px;
}
.auth-welcome h2 {
  font: 27px/1.25 Georgia, serif;
  margin: 0 0 12px;
  color: #65151b;
}
.auth-welcome p {
  color: #786354;
}
.auth-launch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.auth-dialog [hidden] {
  display: none !important;
}
@media (max-width: 420px) {
  .auth-dialog {
    padding: 26px 21px 20px;
    border-radius: 20px;
  }
  .auth-dialog h2 {
    font-size: 28px;
  }
  .auth-welcome {
    padding: 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-dialog button {
    transition: none;
  }
}
