/* DavronMarket — dark auth cards (login / register / password) */
html.dm-auth-html,
html.dm-auth-html[data-theme="light"],
html.dm-auth-html[data-theme="dark"] {
  background: #0a0604 !important;
  color-scheme: dark;
}

html.dm-auth-html body,
html.dm-auth-html[data-theme="light"] body,
html.dm-auth-html[data-theme="dark"] body,
body.dm-auth-page-body {
  font-family: 'Mulish', sans-serif;
  background: #0a0604 !important;
  color: #fff !important;
  min-height: 100vh;
}

html.dm-auth-html body::before,
html.dm-auth-html[data-theme="light"] body::before,
body.dm-auth-page-body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 1 !important;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 107, 43, 0.42) 0%, transparent 58%),
    #0a0604 !important;
  pointer-events: none;
  z-index: 0;
}

html.dm-auth-html .dm-footer,
html.dm-auth-html .dm-global-breadcrumb {
  display: none !important;
}

html.dm-auth-html[data-theme="light"] h1,
html.dm-auth-html[data-theme="light"] h2,
html.dm-auth-html .dm-auth-card-head h1,
html.dm-auth-html .dm-auth-title {
  color: #fff !important;
}

html.dm-auth-html[data-theme="light"] p,
html.dm-auth-html .dm-auth-card-head p,
html.dm-auth-html .dm-auth-lead {
  color: rgba(255, 255, 255, 0.55) !important;
}

.dm-auth-layout {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
}

.dm-auth-shell {
  width: 100%;
  max-width: 400px;
}

html.dm-auth-html .dm-auth-card,
html.dm-auth-html[data-theme="light"] .dm-auth-card,
html.dm-auth-html[data-theme="light"] [class*="-card"].dm-auth-card,
.dm-auth-card {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 107, 43, 0.22) !important;
  background: #14100d !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden;
}

html.dm-auth-html .dm-auth-card.dm-anim-hover:hover {
  transform: none !important;
}

.dm-auth-brand {
  display: block;
  padding: 22px 22px 0;
  font: 800 11px/1 'Unbounded', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8a5c;
  text-align: center;
}

.dm-auth-card-head {
  padding: 14px 22px 0;
  text-align: center;
}

.dm-auth-card-head h1,
.dm-auth-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.dm-auth-card-head p,
.dm-auth-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.dm-auth-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 18px 18px 0;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.dm-auth-tabs.is-2 {
  grid-template-columns: 1fr 1fr;
}

.dm-auth-tabs.is-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dm-auth-locked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.28);
}

.dm-auth-locked small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.dm-auth-locked b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}

html.dm-auth-html .dm-auth-tab,
.dm-auth-tab {
  padding: 9px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font: 800 12px 'Mulish', sans-serif;
  cursor: pointer;
  pointer-events: auto;
}

html.dm-auth-html .dm-auth-tab.on,
.dm-auth-tab.on {
  background: #ff6b2b !important;
  color: #fff !important;
}

.dm-auth-body {
  padding: 18px 22px 22px;
}

.dm-auth-step { display: block; }
.dm-auth-step.hidden { display: none !important; }
html.dm-auth-html .hidden { display: none !important; }

.dm-auth-alert {
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.dm-auth-alert.show { display: block; }
.dm-auth-alert.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}
.dm-auth-alert.success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: #4ade80;
}
.dm-auth-alert.info {
  background: rgba(43, 156, 255, 0.1);
  border: 1px solid rgba(43, 156, 255, 0.22);
  color: #7ec8ff;
}

.dm-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

html.dm-auth-html #step-register .dm-auth-grid,
html.dm-auth-html #dm-auth-name,
html.dm-auth-html #dm-auth-surname,
html.dm-auth-html label[for="dm-auth-name"],
html.dm-auth-html label[for="dm-auth-surname"] {
  display: none !important;
}

.dm-auth-field { margin-bottom: 12px; }

html.dm-auth-html .dm-auth-field label,
.dm-auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.dm-auth-html .dm-auth-field input,
.dm-auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font: 600 14px 'Mulish', sans-serif;
  outline: none;
}

html.dm-auth-html .dm-auth-field input:focus,
.dm-auth-field input:focus {
  border-color: rgba(255, 107, 43, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.14);
}

.dm-auth-field input::placeholder { color: rgba(255, 255, 255, 0.28); }

.dm-auth-code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-family: 'Unbounded', sans-serif !important;
  font-size: 20px !important;
}

.dm-auth-submit,
.dm-auth-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  margin-top: 4px;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.dm-auth-submit {
  border: none;
  background: linear-gradient(135deg, #ff8a5c, #ff6b2b);
  color: #fff;
}

.dm-auth-submit:hover { filter: brightness(1.06); }
.dm-auth-submit:active { transform: scale(0.98); }
.dm-auth-submit[disabled] { opacity: 0.45; pointer-events: none; }
.dm-auth-submit.is-loading { opacity: 0.72; pointer-events: none; }
.dm-auth-submit[hidden] { display: none !important; }

.dm-auth-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

.dm-auth-soc-wrap {
  margin-top: 6px;
}

.dm-auth-soc-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.dm-auth-soc-label::before,
.dm-auth-soc-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.dm-auth-soc-label span {
  flex: 0 0 auto;
}

.dm-auth-soc-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

html.dm-auth-html .dm-auth-soc,
.dm-auth-soc {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  color: transparent;
  opacity: 0.92;
  transition: transform .16s ease, opacity .16s ease;
}

.dm-auth-soc:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.dm-auth-soc:active {
  transform: scale(0.94);
}

.dm-auth-soc-ico,
.dm-auth-soc-ico-tg {
  width: 24px;
  height: 24px;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-auth-soc-ico svg {
  width: 24px;
  height: 24px;
  display: block;
}

html.dm-auth-html .dm-auth-google,
html.dm-auth-html .dm-auth-tg,
.dm-auth-google,
.dm-auth-tg {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dm-auth-tg .dm-auth-soc-ico svg {
  width: 22px;
  height: 22px;
}

.dm-auth-hint {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.dm-auth-bot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  margin: 0 0 10px;
  border: none;
  border-radius: 12px;
  background: #2AABEE;
  color: #fff;
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.dm-auth-bot:hover { filter: brightness(1.06); }
.dm-auth-bot[hidden] { display: none !important; }

.dm-auth-forgot {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffb37a;
  text-decoration: none;
}

.dm-auth-forgot:hover { color: #fff; }

.dm-auth-links { display: none; }

.dm-auth-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.dm-auth-foot a {
  color: #ffb37a;
  font-weight: 800;
  text-decoration: none;
}

.dm-auth-foot a:hover { color: #fff; }

.dm-auth-strength {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.dm-auth-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.25s, background 0.25s;
}

.dm-auth-strength-text {
  font-size: 11px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
}

.dm-auth-phone-sent {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.6;
}

.dm-auth-phone-sent b { color: #ffb37a; }

.dm-auth-field-pass { position: relative; }
.dm-auth-field-pass input { padding-right: 44px; }
.dm-auth-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dm-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin: 12px 0;
}
.dm-auth-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #ff6b2b; flex-shrink: 0; }
.dm-auth-check a { color: #ffb37a; font-weight: 700; text-decoration: none; }

.dm-auth-row { display: none; }

.dm-auth-sent { text-align: center; padding: 8px 0 4px; }
.dm-auth-sent-icon { font-size: 36px; margin-bottom: 10px; }
.dm-auth-sent h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.dm-auth-sent p { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }
.dm-auth-sent b { color: #ffb37a; }

.dm-auth-logged { text-align: center; padding: 12px 0; }
.dm-auth-logged-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #f5c842, #ff6b2b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #111;
  overflow: hidden;
}
.dm-auth-logged-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-auth-logged-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.dm-auth-logged-email { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }

@media (max-width: 640px) {
  .dm-auth-grid { grid-template-columns: 1fr; }
  .dm-auth-card-head,
  .dm-auth-body { padding-left: 18px; padding-right: 18px; }
  .dm-auth-tabs { margin-left: 14px; margin-right: 14px; }
}
