/* ============================================================
   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 .brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; text-decoration: none; }
.auth .brand-name { font-weight: 800; font-size: 1.06rem; letter-spacing: -.03em; }
.auth .brand-name span { color: var(--brand); }
.auth-aside .brand-name span { color: rgba(255, 255, 255, .72); }
.auth .brand-mark { width: 30px; height: 30px; font-size: .8rem; }
.auth .brand-mark svg { width: 22px; height: 22px; }
.auth .brand-mark { background: url('../assets/favicon.svg') center / cover no-repeat; }
.auth .brand-mark svg { display: none; }
.auth-aside .brand-mark { background-color: transparent; }
.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); }

/* Form login dibuat lebih rapat agar jarak setelah password tidak terasa kosong. */
.auth-form #loginForm .field + .field { margin-top: var(--s-3); }
.auth-form #loginForm .field { gap: 4px; }
.auth-form #loginForm #password { padding-left: 12px; padding-right: 36px; }
.auth-form #loginForm .btn-inline { right: 5px; }
.auth-form #loginForm .auth-row { margin-top: var(--s-2); }
.auth-form #loginForm #btnLogin { margin-top: var(--s-4) !important; }

.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.demo-label {
  display: block;
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  padding: var(--s-3) var(--s-4);
}
.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; height: 100dvh; min-height: 100dvh; overflow: hidden; }
  .auth-aside { display: none; }
  .auth-main { padding: var(--s-4); }
  .auth-form-wrap { padding: var(--s-3) 0; }
  .auth-form > .brand { display: flex; margin-bottom: var(--s-4); }
  .auth-form .lead { margin-bottom: var(--s-4); }
  .auth-foot { margin-top: var(--s-4); }
}

/* 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; }
