/* ============================================================
   SHANNA POS — auth.css
   Halaman login: split panel brand + form.
   ============================================================ */

.auth {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ---------- Panel kiri (brand) ---------- */
.auth-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-8) var(--s-9);
  background: linear-gradient(155deg, var(--brand-press), var(--brand));
  color: #fff;
}
.auth-aside::after {
  content: ""; position: absolute; right: -160px; bottom: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.auth-aside .brand-name { color: #fff; }
.auth-aside .brand-name span { color: rgba(255, 255, 255, .72); }
.auth-aside .brand-mark { background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.auth-copy { position: relative; z-index: 1; max-width: 34ch; }
.auth-copy h2 { color: #fff; font-size: 2rem; margin-bottom: var(--s-3); }
.auth-copy p { color: rgba(255, 255, 255, .85); font-size: .97rem; }
.auth-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-3); }
.auth-points li { display: flex; align-items: center; gap: var(--s-3); font-size: .9rem; color: rgba(255, 255, 255, .92); }
.auth-points svg { width: 18px; height: 18px; flex: none; }

/* ---------- Panel kanan (form) ---------- */
.auth-main {
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-5);
  background: var(--plane);
}
.auth-main-top { display: flex; justify-content: flex-end; gap: var(--s-2); }
.auth-form-wrap { flex: 1 1 auto; display: grid; place-items: center; padding: var(--s-6) 0; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form > .brand { display: none; margin-bottom: var(--s-6); }
.auth-form h1 { font-size: 1.75rem; letter-spacing: -.025em; margin-bottom: 6px; }
.auth-form .lead { font-size: .93rem; color: var(--ink-2); margin-bottom: var(--s-6); }

.auth-alert {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5);
  font-size: .875rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--critical) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--critical) 28%, transparent);
  color: var(--critical-ink);
}
.auth-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.auth-alert-info {
  background: var(--brand-wash); color: var(--ink-2);
  border-color: color-mix(in srgb, var(--brand) 26%, transparent);
}

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.auth-sep {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-5) 0; font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.auth-foot { text-align: center; font-size: .85rem; color: var(--ink-3); margin-top: var(--s-6); }

/* Ikon Google pada tombol */
.g-ico { width: 18px; height: 18px; flex: none; }

/* ---------- Banner mode demo (Firebase belum dikonfigurasi) ---------- */
.demo-banner {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  font-size: .84rem; line-height: 1.5;
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  color: var(--warn-ink);
}
.demo-banner svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.demo-banner b { font-weight: 800; }
.demo-banner code {
  font-family: var(--font-mono); font-size: .95em;
  padding: 1px 5px; border-radius: 4px;
  background: color-mix(in srgb, var(--warn) 22%, transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-form > .brand { display: flex; }
}

/* Varian brand dari banner: pemberitahuan versi baru (FASE 8), bukan peringatan. */
.demo-banner.is-brand {
  align-items: center;
  background: var(--brand-wash);
  border-bottom-color: color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand);
}
.demo-banner.is-brand .btn { flex: none; }
