.dashi-auth-page {
  --dh-auth-gutter: clamp(14px, 5vw, 24px);
  background: radial-gradient(ellipse at 50% 0%, #421921, #210d11 70%);
}

.dashi-auth-page .dh-site {
  --dh-nav-clearance: 0px;
  --dh-shell-background: linear-gradient(165deg, #5c2026, #421419 48%, #2d1015 100%);
}

.dashi-auth-page .dh-auth {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color: #2e2120;
}

.dashi-auth-page .dh-auth .dh-auth-hero[data-dh-brand-hero] {
  --dh-brand-inset: calc(var(--dh-auth-gutter) + 4px);
  position: relative;
  isolation: isolate;
  min-height: clamp(216px, 58vw, 262px);
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: 48px;
  color: #fff2df;
}

.dh-auth .dh-auth-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, #3a0c15 0%, #45121be0 27%, #57131b2e 68%, #52172200),
    url("assets/images/hero.png") 70% 46% / cover no-repeat;
  mask-image: linear-gradient(#000 58%, transparent);
  pointer-events: none;
  content: "";
}

.dh-auth .dh-auth-hero-copy { margin-top: clamp(21px, 7vw, 34px); }
.dh-auth .dh-auth-hero-title {
  font-size: clamp(29px, 8vw, 37px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .08em;
}

.dh-auth .dh-auth-slogan {
  max-inline-size: 61%;
  margin-top: 8px;
  color: #ffe5bf;
  font-size: clamp(.75rem, 3.1vw, .875rem);
  text-shadow: 0 1px 7px #321016;
}

.dh-auth .dh-auth-card {
  position: relative;
  margin: -29px clamp(8px, 2.5vw, 12px) 0;
  padding: 14px clamp(14px, 4.4vw, 21px) 12px;
  border: 1px solid #f4e2d2;
  border-radius: 16px;
  background: #fffcf8;
  box-shadow: 0 12px 36px #1e050d55;
}

.dh-auth .dh-auth-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f3ebe3;
}

.dh-auth .dh-auth-nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 9px;
  color: #6c554e;
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
}

.dh-auth .dh-auth-nav a[aria-current="page"] {
  background: #fffdf9;
  color: #982635;
  font-weight: 700;
  box-shadow: 0 1px 5px #47220d20;
}

.dh-auth .dh-auth-intro { margin: 20px 0 18px; }
.dh-auth .dh-auth-intro h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 700; }
.dh-auth .dh-auth-intro p { margin-top: 5px; color: #705d57; font-size: .8125rem; }
.dh-auth .dh-auth-fields {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dh-auth .dh-auth-field { display: grid; gap: 6px; min-width: 0; }
.dh-auth .dh-auth-field label { color: #4c3833; font-size: .8125rem; font-weight: 600; }
.dh-auth .dh-auth-input { position: relative; min-width: 0; }
.dh-auth .dh-auth-input :is(img, svg) {
  position: absolute;
  inset: 50% auto auto 13px;
  z-index: 1;
  transform: translateY(-50%);
  opacity: .73;
  pointer-events: none;
}

.dh-auth .dh-auth-input input {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px 9px 41px;
  border: 1px solid #e6d7cc;
  border-radius: 11px;
  background: #fcf8f3;
  color: #2e2120;
  font-size: 1rem;
}

.dh-auth .dh-auth-input input::placeholder { color: #796961; opacity: 1; }
.dh-auth .dh-auth-input input:disabled { opacity: 1; background: #f4efe9; }
.dh-auth :is(input, button, a):focus-visible { outline: 2px solid #9f2939; outline-offset: 2px; }
.dh-auth .dh-auth-consent {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  color: #604e48;
  font-size: .8125rem;
}

.dh-auth .dh-auth-consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #982635; }
.dh-auth .dh-auth-submit {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(115deg, #a72c3b, #821e2c);
  color: #fffaf2;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
}

.dh-auth .dh-auth-submit:enabled:hover { background: #781b28; }
.dh-auth .dh-auth-submit:disabled { background: #ecdfd7; color: #6e514a; }
.dh-auth .dh-auth-utilities {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.dh-auth .dh-auth-utilities button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #ddc4a9;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf9, #f7ecdd);
  color: #7c3a26;
  font-size: clamp(.7rem, 2.9vw, .78rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px #7a3a1a12, inset 0 1px 0 #fff;
  opacity: 1;
}

.dh-auth .dh-auth-utilities button svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #a4553a;
}

.dh-auth .dh-auth-utilities button:disabled {
  cursor: default;
  opacity: 1;
}

.dh-auth .dh-auth-company {
  margin-top: auto;
  padding: 25px var(--dh-auth-gutter) max(24px, env(safe-area-inset-bottom, 0px));
  color: #e0c6bb;
  font-size: .75rem;
  text-align: center;
}

.dh-auth .dh-auth-company::before {
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 12px;
  background: #d4a07385;
  content: "";
}

.dh-auth .dh-auth-company dl { margin: 0; }
.dh-auth .dh-auth-company dl > div { margin: 0 0 4px; }
.dh-auth .dh-auth-company :is(dt, dd) { display: inline; margin: 0; }
.dh-auth .dh-auth-company dl > :first-child { color: #fae9da; }
.dh-auth .dh-auth-company dd[lang] { letter-spacing: .025em; }
.dh-auth .dh-auth-company .dh-auth-company-number { display: inline-block; margin: 0 4px; }
.dh-auth .dh-auth-company-number dd { font-variant-numeric: tabular-nums; }

.dh-auth :is(.ops-error, .ops-message) {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid #efd5c7;
  border-radius: 9px;
  background: #fff0e7;
  color: #7e282d;
  font-size: .8125rem;
}

/* Keep the longer registration form in one column without repeating login's vertical spacing. */
.dashi-register-page .dh-auth .dh-auth-card {
  margin-top: -38px;
  padding-block: 12px 7px;
  box-shadow: 0 8px 22px #1e050d40;
}

.dashi-register-page .dh-auth .dh-auth-intro { margin-block: 13px 12px; }
.dashi-register-page .dh-auth .dh-auth-fields { gap: 9px; }
.dashi-register-page .dh-auth .dh-auth-field { gap: 4px; }
.dashi-register-page .dh-auth .dh-auth-input input { min-height: 44px; }
.dashi-register-page .dh-auth .dh-auth-consent { min-height: 32px; }
.dashi-register-page .dh-auth .dh-auth-utilities { margin-top: 10px; padding-top: 0; }


@media (max-width: 360px) {
  .dh-auth .dh-auth-utilities { gap: 8px; }
  .dh-auth .dh-auth-utilities button { padding: 8px 6px; font-size: .68rem; gap: 5px; }
  .dh-auth .dh-auth-utilities button svg { width: 14px; height: 14px; }
}
