/* =====================================================
   multicommerce — Login screen (premium)
   ===================================================== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
  overflow: hidden;
}
@media (max-width: 960px) { .auth-shell { grid-template-columns: 1fr; } }

/* =====================================================
   LEFT — brand / pitch panel
   ===================================================== */
.auth-brand {
  position: relative;
  padding: 48px 56px 56px;
  color: #fff;
  background: #1e3a8a;   /* solid (gradient removed) */
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Subtle grid overlay */
.auth-brand .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  pointer-events: none;
}

.auth-brand > * { position: relative; z-index: 1; }

/* Logo + wordmark */
.auth-brand .logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 23px; font-weight: 800; letter-spacing: -0.02em;
}
.auth-brand .logo-mark {
  height: 72px; width: auto; max-width: 240px;
  object-fit: contain;
  display: block;
}
.auth-brand .logo-text .accent { color: #bae6fd; }

/* Headline */
.auth-brand h1 {
  color: #fff; font-size: 39px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 44px 0 14px;
}
.auth-brand h1 .gradient-text {
  background: linear-gradient(90deg, #a5f3fc, #fff, #ddd6fe);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-brand .lede {
  color: rgba(255,255,255,.88);
  font-size: 16px; line-height: 1.7; max-width: 520px;
  margin: 0 0 28px;
}

/* Feature list */
.auth-brand .pitch-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 11px;
}
.auth-brand .pitch-list li {
  display: flex; gap: 11px; align-items: center;
  font-size: 15.5px; color: rgba(255,255,255,.94);
}
.auth-brand .pitch-list .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(16,185,129,.4);
}

/* Stats strip */
.auth-brand .stats {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
}
.auth-brand .stat { text-align: left; }
.auth-brand .stat .num {
  display: block; font-size: 25.5px; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; line-height: 1.1;
}
.auth-brand .stat .lbl {
  display: block; font-size: 12px; color: rgba(255,255,255,.72);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px;
}

/* Testimonial */
.auth-brand .quote {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,.9);
  font-style: italic;
}
.auth-brand .quote .cite {
  display: block; margin-top: 8px; font-style: normal;
  font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: 0.02em;
}
.auth-brand .quote .cite strong { color: #fff; font-weight: 700; }

.auth-brand .foot {
  margin-top: auto; padding-top: 28px;
  color: rgba(255,255,255,.65); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.auth-brand .foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.auth-brand .foot a:hover { color: #fff; }

@media (max-width: 960px) { .auth-brand { display: none; } }

/* =====================================================
   RIGHT — form panel
   ===================================================== */
.auth-form {
  position: relative;
  display: grid; place-items: center;
  padding: 40px 24px;
  background: #fff;   /* solid (gradient removed) */
}
.auth-form .form-card {
  width: 100%; max-width: 420px;
  position: relative;
  animation: cardRise .5s cubic-bezier(.2,.7,.25,1) both;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile-only inline logo */
.auth-form .mini-logo {
  display: none; margin: 0 auto 20px;
  align-items: center; gap: 9px;
  font-size: 19.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
}
.auth-form .mini-logo img { height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.auth-form .mini-logo .accent { color: var(--blue); }
@media (max-width: 960px) { .auth-form .mini-logo { display: inline-flex; } }

.auth-form h2 {
  font-size: 27.5px; font-weight: 800;
  margin: 0 0 6px; letter-spacing: -0.022em; color: var(--ink);
}
.auth-form .sub {
  color: var(--muted); font-size: 15.5px; margin: 0 0 24px; line-height: 1.55;
}

/* SSO buttons */
.auth-form .sso {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 4px;
}
.auth-form .sso button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.auth-form .sso button:hover {
  background: var(--surface-muted);
  border-color: var(--slate-300, #cbd5e1);
  transform: translateY(-1px);
}
.auth-form .sso button svg { width: 16px; height: 16px; }

.auth-form .divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted-2); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 18px 0 6px;
}
.auth-form .divider::before,
.auth-form .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.auth-form form { display: grid; gap: 14px; }
.auth-form .row-between { display: flex; justify-content: space-between; align-items: center; }

.auth-form .form-control.form-lg {
  height: 44px;
  border-radius: 10px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.auth-form .form-control.form-lg:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Password field with visibility toggle */
.auth-form .input-wrap { position: relative; }
.auth-form .input-wrap .input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 15px; pointer-events: none;
}
.auth-form .input-wrap .form-control { padding-left: 38px; }
.auth-form .input-wrap .peek {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 6px;
  display: inline-grid; place-items: center; font-size: 14.5px;
}
.auth-form .input-wrap .peek:hover { background: var(--surface-muted); color: var(--ink); }

/* Remember-me toggle */
.auth-form .check {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14.5px; color: var(--ink-2);
  user-select: none;
}
.auth-form .check input { accent-color: var(--blue); width: 15px; height: 15px; }

.auth-form .btn-signin {
  height: 46px;
  border-radius: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 20px rgba(37,99,235,.3), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.auth-form .btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37,99,235,.38), inset 0 1px 0 rgba(255,255,255,.15);
}

.auth-form .foot-note {
  margin-top: 22px; font-size: 14px; color: var(--muted);
  text-align: center; line-height: 1.55;
}
.auth-form .foot-note a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-form .foot-note a:hover { text-decoration: underline; }

.auth-form .legal {
  margin-top: 32px; font-size: 12px; color: var(--muted-2); text-align: center;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.auth-form .legal a { color: var(--muted); text-decoration: none; }
.auth-form .legal a:hover { color: var(--ink-2); }
