.dns-auth-body { margin: 0; min-height: 100vh; background: #f3eee4; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.dns-auth {
  --auth-primary: #0f3d32;
  --auth-accent: #c5a35a;
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  position: relative;
}
.dns-auth::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    var(--auth-photo, none) center/cover no-repeat,
    radial-gradient(80% 70% at 12% 0%, color-mix(in srgb, var(--auth-accent) 38%, transparent), transparent 55%),
    linear-gradient(165deg, color-mix(in srgb, var(--auth-primary) 18%, #f7f2e8), color-mix(in srgb, var(--auth-accent) 24%, #efe6d4) 55%, color-mix(in srgb, var(--auth-primary) 14%, #e8dfcc));
}
.dns-auth__card {
  position: relative; z-index: 1;
  width: min(440px, 100%); background: rgba(255,255,255,.96);
  border-radius: 28px; padding: 32px 28px 24px;
  box-shadow: 0 24px 60px rgba(40,36,28,.12), 0 0 0 1px rgba(255,255,255,.6) inset;
  overflow: hidden; backdrop-filter: blur(10px);
}
.dns-auth[data-mode="signup"] .dns-auth__card { width: min(640px, 100%); }
.dns-auth__mark {
  width: 56px; height: 56px; margin: 0 0 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start;
}
.dns-auth img.dns-auth__logo,
.dns-auth__card img.dns-auth__logo,
.dns-auth__logo {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  margin: 0 !important;
  filter: drop-shadow(0 4px 10px rgba(15,61,50,.12));
}
.dns-auth__kicker { margin: 0; color: var(--auth-primary); font-weight: 800; letter-spacing: .08em; font-size: 11px; text-transform: uppercase; }
.dns-auth h2 { margin: 10px 0 8px; font-size: 1.85rem; color: #1b1f2a; letter-spacing: -.02em; }
.dns-auth__lead { color: #7d8293; margin: 0 0 22px; line-height: 1.55; }
.dns-auth label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; margin-bottom: 12px; color: #3a4050; letter-spacing: .01em; }
.dns-auth input, .dns-auth select, .dns-auth textarea {
  height: 46px; border: 1px solid #e8e2d4; border-radius: 14px; padding: 0 14px; font: inherit; background: #fbf8f2;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dns-auth textarea { height: 92px; padding: 12px 14px; }
.dns-auth input:focus, .dns-auth select:focus, .dns-auth textarea:focus {
  outline: none; border-color: var(--auth-primary); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary) 16%, transparent);
}
.dns-auth button[type=submit],
.dns-auth [data-auth-submit] {
  width: 100%; height: 50px; border: 0; border-radius: 999px; margin-top: 6px;
  background: var(--auth-primary) !important;
  color: #fff !important; font-weight: 800; cursor: pointer; letter-spacing: .01em;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--auth-primary) 28%, transparent);
}
.dns-auth button[type=submit]:hover { filter: brightness(1.05); }
.dns-auth__foot { text-align: center; color: #8b90a0; margin: 16px 0 0; }
.dns-link { background: none; border: 0; color: var(--auth-primary); font-weight: 800; cursor: pointer; font: inherit; }
.dns-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dns-auth__grid .full { grid-column: 1 / -1; }
.dns-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.dns-ok, .dns-err {
  position: relative; z-index: 2;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px;
  font-weight: 700; line-height: 1.45; font-size: 14px;
}
.dns-ok { background: #ecfdf5; color: #14532d; border: 1px solid #86efac; }
.dns-err { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.dns-auth__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: linear-gradient(90deg, var(--auth-primary), var(--auth-accent));
}

.dns-auth--saffron { --auth-primary: #9a3412; --auth-accent: #f59e0b; }
.dns-auth--ivory { --auth-primary: #44403c; --auth-accent: #d6b56a; }
.dns-auth--midnight { --auth-primary: #1e1b4b; --auth-accent: #c4b5fd; }
.dns-auth--lotus { --auth-primary: #9d174d; --auth-accent: #f9a8d4; }
.dns-auth--river { --auth-primary: #155e75; --auth-accent: #67e8f9; }
.dns-auth--forest { --auth-primary: #0f3d32; --auth-accent: #c5a35a; }

.dns-auth-body--midnight { background: #0b1020; }
.dns-auth--midnight .dns-auth__card { background: #12182c; color: #e8e6ff; box-shadow: 0 22px 50px rgba(0,0,0,.35); }
.dns-auth--midnight h2, .dns-auth--midnight label { color: #f5f3ff; }
.dns-auth--midnight .dns-auth__lead, .dns-auth--midnight .dns-auth__foot { color: #a5b0d0; }
.dns-auth--midnight input, .dns-auth--midnight select, .dns-auth--midnight textarea {
  background: #0d1324; border-color: #2a3354; color: #f5f3ff;
}

.dns-auth input[type=checkbox] {
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0;
  border-radius: 4px; background: #fff; flex: 0 0 18px; accent-color: var(--auth-primary);
}

.dns-auth--embed {
  min-height: 0;
  padding: 12px 0 24px;
  place-items: start center;
}
.dns-auth--embed::before {
  position: absolute;
  inset: 0;
  border-radius: 28px;
}

@media (max-width: 640px) { .dns-auth__grid { grid-template-columns: 1fr; } .dns-auth[data-mode="signup"] .dns-auth__card { width: min(440px, 100%); } }
