/* DealerStack Auth (login) */
:root{
  --ds-bg:#f3f5fb;
  --ds-card:#ffffff;
  --ds-right:#f7f9fd;
  --ds-text:#0f172a;
  --ds-muted:#64748b;
  --ds-border:#e5e7eb;
  --ds-shadow: 0 22px 70px rgba(2, 6, 23, .18);
  --ds-radius: 28px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body.ds-auth{
  margin:0;
  background: radial-gradient(1200px 650px at 50% 25%, #ffffff 0%, var(--ds-bg) 55%, #eef2ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ds-text);
}

a{ color: inherit; }

.ds-auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

.ds-auth-card{
  width:min(1060px, 100%);
  min-height: 560px;
  background: var(--ds-card);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow);
  overflow:hidden;
  display:flex;
}

/* LEFT */
.ds-auth-left{
  width:46%;
  position:relative;
  padding: 56px 56px;
  color:#fff;
  background:
    radial-gradient(900px 520px at 55% 30%, rgba(56,189,248,.18) 0%, rgba(56,189,248,0) 60%),
    radial-gradient(700px 520px at 25% 70%, rgba(99,102,241,.22) 0%, rgba(99,102,241,0) 58%),
    linear-gradient(135deg, #071227 0%, #0b1d3e 45%, #0b2b5f 100%);
}

/* subtle "stars/noise" */
.ds-auth-left::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.55;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 22%, rgba(255,255,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(255,255,255,.38) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 64%, rgba(255,255,255,.32) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 72%, rgba(255,255,255,.28) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.28) 0 1px, transparent 2px);
  pointer-events:none;
}

.ds-auth-left-inner{ position:relative; z-index:1; }
.ds-auth-left-foot{ position:absolute; left:56px; bottom:48px; z-index:1; opacity:.85; font-size:13px; }

.ds-auth-mark{
  font-size: 52px;
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.05;
}

.ds-auth-tag{
  margin-top: 12px;
  font-size: 18px;
  opacity: .86;
}

/* RIGHT */
.ds-auth-right{
  width:54%;
  background: linear-gradient(180deg, #fbfcff 0%, var(--ds-right) 100%);
  padding: 34px 52px 34px 52px;
  display:flex;
  flex-direction:column;
  position:relative;
}

.ds-auth-back{
  align-self:flex-end;
  text-decoration:none;
  font-size: 13px;
  color: #334155;
  border: 1px solid var(--ds-border);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}
.ds-auth-back:hover{ background:#fff; }

.ds-auth-form{
  margin-top: 46px;
  max-width: 420px;
}

.ds-auth-form h1{
  margin: 0;
  font-size: 44px;
  letter-spacing: -0.02em;
}

.ds-auth-sub{
  margin: 10px 0 26px 0;
  color: var(--ds-muted);
  font-size: 15px;
}

.ds-auth-alert{
  border: 1px solid #fecaca;
  background: #fff1f2;
  color:#881337;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.ds-auth-fields{ display:flex; flex-direction:column; gap: 14px; }

.ds-field{ display:flex; flex-direction:column; gap: 8px; }
.ds-label{ display:none; }

.ds-field input{
  width:100%;
  padding: 14px 16px;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  font-size: 15px;
  outline: none;
}

.ds-field input:focus{
  border-color: rgba(59,130,246,.65);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.ds-auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-top: 2px;
}

.ds-remember{
  display:flex;
  gap: 10px;
  align-items:center;
  font-size: 13px;
  color:#334155;
}

.ds-remember input{
  width: 16px;
  height: 16px;
}

.ds-auth-link{
  font-size: 13px;
  color: #2563eb;
  text-decoration:none;
}
.ds-auth-link:hover{ text-decoration:underline; }

.ds-auth-submit{
  margin-top: 10px;
  border: 0;
  cursor:pointer;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, #0f172a 0%, #111827 45%, #0b1220 100%);
  box-shadow: 0 12px 30px rgba(2,6,23,.22);
}
.ds-auth-submit:hover{ filter: brightness(1.03); }

.ds-auth-foot{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(226,232,240,.9);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  color:#64748b;
  font-size: 13px;
}

.ds-auth-foot-links{ display:flex; gap: 14px; }
.ds-auth-foot-links a{ text-decoration:none; color: inherit; }
.ds-auth-foot-links a:hover{ color:#334155; text-decoration:underline; }

/* Responsive */
@media (max-width: 980px){
  .ds-auth-card{ flex-direction:column; min-height:auto; }
  .ds-auth-left{ width:100%; padding: 38px 32px; }
  .ds-auth-left-foot{ position:static; margin-top: 22px; left:auto; bottom:auto; }
  .ds-auth-right{ width:100%; padding: 26px 24px 28px 24px; }
  .ds-auth-form{ margin-top: 22px; max-width: 520px; }
  .ds-auth-form h1{ font-size: 38px; }
}

@media (max-width: 520px){
  .ds-auth-wrap{ padding: 14px; }
  .ds-auth-left{ padding: 30px 22px; }
  .ds-auth-right{ padding: 22px 18px 22px 18px; }
  .ds-auth-back{ font-size: 12px; padding: 8px 12px; }
}
