/* Auth pages: app-like split login/signup layout. */
html:has(body.db-auth-route) {
  overflow: hidden;
  height: 100dvh;
}
body.db-auth-route {
  background: #f6f7fb;
  overflow: hidden;
  height: 100dvh;
}
body.db-auth-route .db-bottom-cta,
body.db-auth-route .db-footer {
  display: none;
}
.db-signup-page .db-signup-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}
.db-signup-page .db-signup-steps__meta {
  flex: 0 0 auto;
  gap: 4px;
  font-size: 10px;
  line-height: 1;
}
.db-signup-page .db-signup-steps__rail {
  gap: 4px;
  margin-left: auto;
}
.db-signup-page .db-signup-step-chip {
  min-height: 20px;
  padding: 0 8px;
  font-size: 10px;
}
.db-auth-app {
  background: #f6f7fb;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  width: 100%;
}
.db-auth-app__inner {
  display: grid;
  grid-template-columns: minmax(420px, 46%) minmax(460px, 54%);
  min-height: 100dvh;
  height: 100dvh;
  max-width: 1440px;
  margin-inline: auto;
  background: #fff;
  overflow: hidden;
}
.db-auth-app__form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 88px clamp(28px, 5vw, 72px) 32px;
  min-height: 100dvh;
  height: 100dvh;
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.db-auth-back {
  position: absolute;
  top: 24px;
  left: clamp(24px, 4vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--db-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.db-auth-back:hover {
  color: var(--db-accent);
}
.db-auth-back__icon,
.db-auth-back__icon .dashicons,
.db-auth-back__icon svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.db-auth-brand {
  display: inline-flex;
  align-items: center;
  color: var(--db-deep);
  text-decoration: none;
  margin: 0 auto 20px auto;
}
.db-auth-brand-image {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(240px, 100%);
  object-fit: contain;
}
.db-auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--db-accent);
}
.db-auth-brand-mark .db-icon,
.db-auth-brand-mark svg {
  width: 17px;
  height: 17px;
}
.db-auth-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.db-auth-brand em {
  display: block;
  margin-top: 2px;
  color: var(--db-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}
.db-auth-form-wrap {
  width: min(100%, 440px);
  margin-inline: auto;
}
.db-login-page .db-auth-app__form-side,
.db-lost-password-page .db-auth-app__form-side {
  justify-content: flex-start;
  padding-top: 68px;
  padding-bottom: 20px;
}
.db-login-page .db-auth-brand,
.db-lost-password-page .db-auth-brand {
  margin: 0 auto 14px auto;
}
.db-login-page .db-auth-brand-image,
.db-lost-password-page .db-auth-brand-image {
  height: 38px;
}
.db-login-page .db-auth-form-wrap,
.db-lost-password-page .db-auth-form-wrap {
  width: min(100%, 430px);
}
.db-signup-steps {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.db-signup-steps__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.db-signup-steps__meta strong {
  color: var(--db-deep);
  font-weight: 700;
}
.db-signup-steps__meta em {
  color: #94a3b8;
  font-style: normal;
}
.db-signup-steps__rail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.db-signup-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f3f7;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.db-signup-step-chip.is-active {
  background: #fff1f2;
  color: var(--db-accent);
  box-shadow: inset 0 0 0 1px rgba(215, 25, 32, 0.14);
}
.db-signup-step {
  display: grid;
  gap: 12px;
}
.db-signup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.db-signup-actions--single {
  grid-template-columns: 1fr;
}
.db-auth-shell {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.db-auth-shell h2 {
  margin: 0 0 6px;
  font-size: clamp(25px, 3vw, 25px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--db-deep);
}
.db-login-page .db-auth-shell h2,
.db-lost-password-page .db-auth-shell h2 {
  margin-bottom: 4px;
  font-size: 22px;
}
.db-auth-shell h2 + p {
  max-width: 38rem;
  margin: 0 0 24px;
  color: var(--db-muted);
  font-size: 15px;
  line-height: 1.55;
}
.db-login-page .db-auth-shell h2 + p,
.db-lost-password-page .db-auth-shell h2 + p {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.db-auth-tabs,
.db-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 22px;
  padding: 4px;
  border-radius: 14px;
  background: #f1f3f7;
}
.db-login-page .db-auth-tabs,
.db-lost-password-page .db-auth-tabs {
  margin-bottom: 16px;
}
.db-auth-tabs a,
.db-auth-tabs button,
.db-auth-tabs a,
.db-auth-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.db-auth-tabs .is-active,
.db-auth-tabs .is-active {
  background: #fff;
  color: var(--db-accent);
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(215, 25, 32, 0.12);
}
.db-auth-shell #loginform,
.db-auth-shell .db-public-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}
.db-login-page .db-auth-shell .db-public-form,
.db-lost-password-page .db-auth-shell .db-public-form {
  gap: 10px;
}
.db-auth-shell #loginform p,
.db-auth-shell .db-public-form p {
  margin: 0;
}
.db-auth-shell #loginform label,
.db-auth-shell .db-public-form label,
.db-auth-shell .db-auth-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--db-deep);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
}
.db-required,
.db-auth-shell label em {
  color: var(--db-accent);
  font-style: normal;
  font-weight: 700;
}
.db-auth-shell #loginform input[type="text"],
.db-auth-shell #loginform input[type="password"],
.db-auth-shell
  .db-public-form
  input:not([type="checkbox"]):not([type="radio"]),
.db-auth-shell .db-public-form select,
.db-auth-shell .db-public-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  padding: 8px 11px;
  background: #fff;
  color: var(--db-deep);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}
.db-login-page .db-auth-shell .db-public-form input:not([type="checkbox"]):not([type="radio"]),
.db-lost-password-page .db-auth-shell .db-public-form input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 40px;
  padding: 7px 11px;
}
.db-auth-shell #loginform input:focus,
.db-auth-shell .db-public-form input:focus,
.db-auth-shell .db-public-form select:focus,
.db-auth-shell .db-public-form textarea:focus {
  outline: 0;
  border-color: rgba(215, 25, 32, 0.65);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}
.db-auth-shell .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.db-auth-shell .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--db-muted);
  line-height: 1.2;
  white-space: nowrap;
}
.db-auth-shell .login-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: var(--db-accent);
  cursor: pointer;
}
.db-auth-shell .login-submit .button,
.db-auth-shell .db-public-form button:not(.db-password-toggle),
.db-auth-shell .db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--db-accent);
  color: #fff;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.18);
}
.db-login-page .db-auth-shell .db-public-form button:not(.db-password-toggle),
.db-lost-password-page .db-auth-shell .db-public-form button:not(.db-password-toggle) {
  min-height: 40px;
}
.db-auth-shell .login-submit .button:hover,
.db-auth-shell .db-public-form button:not(.db-password-toggle):hover,
.db-auth-shell .db-btn:hover {
  background: #b91520;
  color: #fff;
}
.db-auth-shell a {
  color: var(--db-accent);
  font-weight: 600;
  text-decoration: none;
}
.db-auth-shell a:hover {
  text-decoration: underline;
}
.db-auth-helper,
.db-auth-shell #loginform + p {
  margin-top: 10px;
  font-size: 14px;
  text-align: right;
}
.db-login-page .db-auth-helper,
.db-lost-password-page .db-auth-helper {
  margin-top: 4px;
}
.db-field-help,
.db-password-meter {
  margin-top: 1px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}
.db-password-meter.is-weak {
  color: #b91c1c;
}
.db-password-meter.is-medium {
  color: #b45309;
}
.db-password-meter.is-strong {
  color: #15803d;
}
.db-owner-auth-form .db-field-help,
.db-owner-auth-form .db-password-meter {
  display: none;
}
.db-auth-toast {
  position: sticky;
  top: 16px;
  z-index: 8;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.db-auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.db-owner-auth-form [aria-invalid="true"] {
  border-color: rgba(215, 25, 32, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12) !important;
}
.db-password-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.db-password-wrap input[type="password"],
.db-password-wrap input[type="text"] {
  width: 100% !important;
  padding-right: 44px !important;
}
.db-auth-shell button.db-password-toggle,
.db-auth-shell .db-public-form button.db-password-toggle,
.db-auth-shell #loginform button.db-password-toggle {
  all: unset !important;
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  color: #64748b !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
}
.db-auth-shell button.db-password-toggle:hover,
.db-auth-shell button.db-password-toggle:focus-visible {
  background: #eef2f7 !important;
  color: #334155 !important;
  outline: 2px solid transparent !important;
}
.db-password-toggle .dashicons {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  font-size: 18px !important;
  line-height: 18px !important;
}
.db-password-toggle .dashicons::before {
  line-height: 18px !important;
}
.db-auth-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--db-muted);
  font-size: 14px;
  text-align: center;
}
.db-auth-note strong {
  font-weight: 500;
  color: #667085;
}
.db-auth-note a {
  color: var(--db-accent);
  font-weight: 600;
  text-decoration: none;
}
.db-auth-note a:hover {
  text-decoration: underline;
}
.db-notice {
  margin-bottom: 16px;
}
.db-auth-app__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 0;
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(255, 255, 255, 0.28),
      transparent 24%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(255, 255, 255, 0.18),
      transparent 26%
    ),
    linear-gradient(135deg, var(--db-accent) 0%, #b91520 48%, #7f1117 100%);
}
.db-auth-app__visual::before,
.db-auth-app__visual::after {
  content: "";
  display: none;
}
.db-auth-image-slot {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.04)
    ),
    url("../images/auth-image.png") center center / cover no-repeat;
  box-shadow: none;
  overflow: hidden;
}
.db-auth-image-slot::before,
.db-auth-image-slot::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  display: none;
}
.db-auth-image-slot::before {
  width: 42%;
  height: 42%;
  left: 16%;
  top: 18%;
}
.db-auth-image-slot::after {
  width: 26%;
  height: 26%;
  right: 18%;
  bottom: 18%;
}
@media (max-width: 1200px) {
  .db-auth-app__inner {
    grid-template-columns: minmax(390px, 50%) minmax(360px, 50%);
  }
  .db-auth-app__form-side {
    padding-inline: 34px;
  }
  .db-auth-form-wrap {
    width: min(100%, 420px);
  }
  .db-auth-image-slot {
    width: 100%;
    height: 100%;
  }
}
@media (min-width: 901px) and (max-height: 820px) {
  .db-auth-app__form-side {
    justify-content: flex-start;
    padding: 62px clamp(24px, 4vw, 48px) 18px;
    overflow-y: hidden;
  }
  .db-auth-back {
    top: 16px;
  }
  .db-auth-brand {
    margin: 0 auto 12px auto;
  }
  .db-auth-brand-image {
    height: 36px;
  }
  .db-auth-form-wrap {
    width: min(100%, 430px);
  }
  .db-auth-shell h2 {
    margin-bottom: 4px;
    font-size: 22px;
  }
  .db-auth-shell h2 + p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.42;
  }
  .db-auth-tabs,
  .db-auth-tabs {
    margin-bottom: 14px;
    padding: 3px;
  }
  .db-auth-tabs a,
  .db-auth-tabs button,
  .db-auth-tabs a,
  .db-auth-tabs button {
    min-height: 34px;
    font-size: 13px;
  }
  .db-signup-steps {
    gap: 4px;
    margin-bottom: 8px;
  }
  .db-signup-steps__meta {
    font-size: 10px;
  }
  .db-signup-steps__rail {
    gap: 4px;
  }
  .db-signup-step-chip {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
  }
  .db-signup-step {
    gap: 10px;
  }
  .db-auth-shell #loginform,
  .db-auth-shell .db-public-form {
    gap: 10px;
  }
  .db-auth-shell #loginform label,
  .db-auth-shell .db-public-form label,
  .db-auth-shell .db-auth-field {
    gap: 4px;
    font-size: 13px;
  }
  .db-auth-shell #loginform input[type="text"],
  .db-auth-shell #loginform input[type="password"],
  .db-auth-shell
    .db-public-form
    input:not([type="checkbox"]):not([type="radio"]),
  .db-auth-shell .db-public-form select,
  .db-auth-shell .db-public-form textarea {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 14px;
  }
  .db-auth-shell .login-remember label {
    font-size: 13px;
  }
  .db-auth-shell .login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex-basis: 16px;
  }
  .db-auth-shell .login-submit .button,
  .db-auth-shell .db-public-form button:not(.db-password-toggle),
  .db-auth-shell .db-btn {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
  }
  .db-auth-helper,
  .db-auth-shell #loginform + p {
    margin-top: 2px;
    font-size: 13px;
  }
  .db-auth-app__visual,
  .db-auth-image-slot {
    height: 100dvh;
    min-height: 100dvh;
  }
}
@media (max-width: 900px) {
  .db-auth-app__inner {
    grid-template-columns: 1fr;
    background: #fff;
    min-height: 100dvh;
    height: 100dvh;
  }
  .db-auth-app__visual {
    display: none;
  }
  .db-auth-app__form-side {
    min-height: 100dvh;
    height: 100dvh;
    padding: 74px 20px 24px;
    align-items: center;
  }
  .db-auth-brand {
    position: static;
    margin: 0 auto 28px 0;
  }
  .db-auth-form-wrap {
    width: min(100%, 440px);
    margin: auto;
  }
  .db-signup-actions {
    grid-template-columns: 1fr;
  }
  .db-auth-back {
    top: 18px;
    left: 20px;
  }
}
@media (max-width: 640px) {
  body.db-auth-route .db-site-main {
    background: #fff;
  }
  .db-auth-app {
    min-height: 100dvh;
    background: #fff;
  }
  .db-auth-app__inner {
    min-height: 100dvh;
    height: 100dvh;
    background: #fff;
  }
  .db-auth-app__form-side {
    justify-content: center;
    min-height: 100dvh;
    height: 100dvh;
    padding: 64px 18px 24px;
  }
  .db-auth-back {
    top: 14px;
    left: 18px;
  }
  .db-auth-brand {
    margin-bottom: 20px;
  }
  .db-auth-brand strong {
    font-size: 18px;
  }
  .db-auth-brand em {
    font-size: 11px;
  }
  .db-auth-form-wrap {
    width: 100%;
    margin: 0 auto;
  }
  .db-auth-shell h2 {
    font-size: 28px;
  }
  .db-auth-shell h2 + p {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .db-auth-tabs,
  .db-auth-tabs {
    margin-bottom: 18px;
  }
  .db-auth-shell #loginform input[type="text"],
  .db-auth-shell #loginform input[type="password"],
  .db-auth-shell
    .db-public-form
    input:not([type="checkbox"]):not([type="radio"]),
  .db-auth-shell .db-public-form select,
  .db-auth-shell .db-public-form textarea {
    min-height: 44px;
    font-size: 16px;
  }
  .db-auth-note {
    font-size: 13px;
    flex-wrap: wrap;
  }
}
