/* ─────────────────────────────────────────────────────────────────────────────
   DeyPage — auth screens (login / register).
   Split layout: an always-dark brand panel beside a theme-aware form card.
   Uses unique .dp-auth-* / .dp-fld classes so nothing collides with the
   ecommerce plugin's front-auth.css. Works in both light and dark themes.
   ───────────────────────────────────────────────────────────────────────────── */

.dp-auth {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: 100dvh;               /* the site header is hidden on auth screens */
  background: var(--paper);
}

/* ── brand panel ─────────────────────────────────────────────────────────── */
.dp-auth-brand {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--auth-brand-text);
  background: var(--auth-brand-bg);
}

.dp-auth-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .16;
  pointer-events: none;
}

.dp-auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: .5;
}
.dp-auth-glow--1 { width: 340px; height: 340px; top: -80px; right: -60px; background: var(--auth-glow-leaf); }
.dp-auth-glow--2 { width: 300px; height: 300px; bottom: -70px; left: -50px; background: var(--auth-glow-gold); }

.dp-auth-brand-in { position: relative; z-index: 1; max-width: 460px; margin: auto 0; }

.dp-auth-logo { display: inline-flex; align-items: center; gap: 11px; margin-bottom: clamp(28px, 5vw, 54px); }
.dp-auth-pin { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--leaf), var(--forest)); box-shadow: var(--shadow-brand-mark); }
.dp-auth-pin svg { width: 22px; height: 22px; }
.dp-auth-word { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; color: var(--auth-brand-text); }
.dp-auth-word span { color: var(--auth-brand-accent); }

.dp-auth-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.dp-auth-copy h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.03;
  font-size: clamp(30px, 3.8vw, 46px); color: var(--auth-brand-text); margin: 16px 0 16px;
}
.dp-auth-copy h2 em { font-style: normal; color: var(--gold); }
.dp-auth-copy p { color: var(--auth-brand-muted); font-size: 16px; line-height: 1.6; max-width: 42ch; }

.dp-auth-points { list-style: none; margin: 26px 0 0; padding: 0; max-width: 330px; display: flex; flex-direction: column; gap: 13px; }
.dp-auth-points li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--auth-brand-text); }
.dp-auth-points svg { width: 20px; height: 20px; color: var(--auth-brand-accent); flex: 0 0 auto; }

.dp-auth-seal { position: absolute; right: clamp(30px, 4vw, 60px); bottom: clamp(40px, 6vw, 72px); width: 132px; height: 132px; }
.dp-auth-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: dpAuthSpin 40s linear infinite; }
.dp-auth-disc {
  position: absolute; inset: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verification-seal-bg);
  box-shadow: var(--shadow-seal);
}
.dp-auth-disc svg { width: 34px; height: 34px; }
@keyframes dpAuthSpin { to { transform: rotate(360deg); } }

.dp-auth-stats { display: flex; gap: 30px; margin-top: clamp(30px, 5vw, 50px); flex-wrap: wrap; }
.dp-auth-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--auth-brand-text); }
.dp-auth-stats span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--auth-brand-subtle); }

/* ── form panel ──────────────────────────────────────────────────────────── */
.dp-auth-form { position: relative; display: grid; place-items: center; padding: clamp(64px, 8vw, 84px) 22px clamp(30px, 5vw, 56px); }

/* slim top bar (replaces the removed site header) */
.dp-auth-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
}
.dp-auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .15s;
}
.dp-auth-back svg { width: 17px; height: 17px; }
.dp-auth-back:hover { color: var(--forest); }
.dp-auth-topbar .icon-btn { color: var(--ink); }

.dp-auth-card {
  width: min(430px, 100%);
  animation: dpAuthIn .5s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes dpAuthIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dp-auth-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--forest);
}
.dp-auth-card h1 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 12px 0 8px; }
.dp-auth-sub { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 26px; }

.dp-auth-fields { display: flex; flex-direction: column; gap: 15px; }

.dp-fld { display: flex; flex-direction: column; gap: 7px; }
.dp-fld label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dp-fld-wrap { position: relative; display: flex; align-items: center; }
.dp-fld-ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .15s; }
.dp-fld-wrap input {
  width: 100%;
  border: 1px solid var(--control-border);
  background: color-mix(in srgb, var(--muted) 7%, transparent);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  font-family: var(--font-text);
  font-size: 15.5px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dp-fld-wrap input::placeholder { color: var(--text-placeholder); }
.dp-fld-wrap input:focus { border-color: var(--forest); background: var(--card); box-shadow: 0 0 0 3px var(--focus-ring); }
.dp-fld-wrap input:focus + .dp-fld-ic,
.dp-fld-wrap:focus-within .dp-fld-ic { color: var(--forest); }
.dp-fld-hint { font-size: 12.5px; color: var(--muted); }
.dp-fld-err { font-size: 12.5px; color: var(--danger); }

.dp-fld-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dp-fld-link { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.dp-fld-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* flash / status note */
.dp-auth-note {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
  font-size: 14px; line-height: 1.45;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--muted) 8%, transparent); color: var(--ink);
}
.dp-auth-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.dp-auth-note.is-ok { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }

/* OTP digit boxes */
.dp-auth-otp { display: flex; gap: 9px; }
.dp-auth-otp input {
  flex: 1; min-width: 0; text-align: center;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  padding: 14px 0; border: 1px solid var(--control-border); border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 7%, transparent); color: var(--ink);
  outline: 0; transition: border-color .15s, box-shadow .15s, background .15s;
}
.dp-auth-otp input:focus { border-color: var(--forest); background: var(--card); box-shadow: 0 0 0 3px var(--focus-ring); }

.dp-auth-submit { width: 100%; justify-content: center; gap: 8px; padding: 14px; font-size: 15px; }
.dp-auth-submit svg { width: 18px; height: 18px; }

.dp-auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.dp-auth-or::before, .dp-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.dp-auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; color: var(--muted); }
.dp-auth-alt a { color: var(--forest); font-weight: 700; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .dp-auth { grid-template-columns: 1fr; }
  .dp-auth-brand { padding: 40px 26px 44px; }
  .dp-auth-brand-in { max-width: none; margin: 0; }
  .dp-auth-seal { width: 84px; height: 84px; right: 26px; top: 26px; }
  .dp-auth-disc { inset: 20px; }
  .dp-auth-disc svg { width: 22px; height: 22px; }
  .dp-auth-points, .dp-auth-stats { margin-top: 22px; }
  .dp-auth-copy h2 { font-size: clamp(26px, 7vw, 36px); }
}
@media (max-width: 520px) {
  .dp-auth-points li:nth-child(n+3) { display: none; }
  .dp-auth-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-auth-ring { animation: none; }
  .dp-auth-card { animation: none; }
}
