/* Sign-in pages (admin, customer portal) and the public landing page share this one stylesheet.
   Plain CSS, no framework: it must not depend on whichever Bootstrap a page happens to load.
   Accent = one teal; neutrals share one blue-grey family. */
:root {
  --au-ink: #0a1322;
  --au-ink-2: #101c31;
  --au-line: rgba(255, 255, 255, .09);
  --au-text: #e8eef7;
  --au-muted: #8fa0b8;
  --au-accent: #19c3a6;
  --au-accent-2: #0ea58c;
  --au-accent-soft: rgba(25, 195, 166, .14);
  --au-paper: #f5f8fc;
  --au-card: #ffffff;
  --au-card-line: #dde5f0;
  --au-card-text: #14213a;
  --au-card-muted: #62728c;
  --au-danger: #e5484d;
  --au-radius: 14px;
  --au-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.au-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--au-font);
  color: var(--au-card-text);
  background: var(--au-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- sign-in layout ---------- */
.au-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.au-brand {
  position: relative;
  overflow: hidden;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--au-text);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(25, 195, 166, .30), transparent 62%),
    radial-gradient(760px 560px at 108% 104%, rgba(56, 120, 255, .26), transparent 60%),
    linear-gradient(160deg, var(--au-ink-2), var(--au-ink));
}
/* a faint network grid that fades toward the form side */
.au-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--au-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--au-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.au-brand > * { position: relative; }
.au-logo-chip {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  align-self: flex-start;
}
.au-logo-chip img { display: block; height: 42px; width: auto; max-width: 220px; object-fit: contain; }
.au-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
}
.au-hero h1 em { font-style: normal; color: var(--au-accent); }
.au-hero p { margin: 0; max-width: 34ch; font-size: 1rem; line-height: 1.6; color: var(--au-muted); }
.au-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.au-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: #c3cfe0; line-height: 1.45; }
.au-points .ic {
  flex: 0 0 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--au-accent-soft); color: var(--au-accent);
}
.au-points svg { width: 16px; height: 16px; }
.au-foot { font-size: .78rem; color: var(--au-muted); }

.au-formside {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px;
  background: var(--au-paper);
}
.au-card { width: 100%; max-width: 410px; }
.au-card .au-mobile-logo { display: none; }
.au-card h2 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.02em; font-weight: 800; color: var(--au-card-text); }
.au-card .au-sub { margin: 0 0 28px; font-size: .92rem; color: var(--au-card-muted); }

.au-field { margin-bottom: 18px; }
.au-label { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #3b4a63; }
.au-input-wrap { position: relative; }
.au-input-wrap > svg.lead {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #8b9ab2; pointer-events: none; transition: color .15s;
}
.au-input {
  width: 100%; height: 50px;
  padding: 0 46px 0 44px;
  font: inherit; font-size: .95rem; color: var(--au-card-text);
  background: var(--au-card);
  border: 1.5px solid var(--au-card-line);
  border-radius: 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.au-input::placeholder { color: #a3b0c4; }
.au-input:hover { border-color: #c4d0e2; }
.au-input:focus { border-color: var(--au-accent-2); box-shadow: 0 0 0 4px var(--au-accent-soft); }
.au-input:focus ~ svg.lead, .au-input-wrap:focus-within > svg.lead { color: var(--au-accent-2); }
.au-input.is-bad { border-color: var(--au-danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.au-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 9px; cursor: pointer; color: #8b9ab2;
}
.au-eye:hover { color: var(--au-card-text); background: #eef2f8; }
.au-eye:focus-visible { outline: 2px solid var(--au-accent-2); }
.au-eye svg { width: 18px; height: 18px; }
.au-err { margin-top: 6px; min-height: 0; font-size: .78rem; color: var(--au-danger); }
.au-caps { display: none; margin-top: 6px; font-size: .78rem; color: #b26a00; }

.au-row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 22px; font-size: .85rem; }
.au-check { display: inline-flex; align-items: center; gap: 8px; color: var(--au-card-muted); cursor: pointer; user-select: none; }
.au-check input { width: 16px; height: 16px; accent-color: var(--au-accent-2); }

.au-btn {
  width: 100%; height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: .98rem; font-weight: 700; color: #04251f;
  background: linear-gradient(180deg, #27d6b8, var(--au-accent));
  border: 0; border-radius: 11px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 165, 140, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.au-btn:hover { filter: brightness(1.04); box-shadow: 0 14px 28px rgba(14, 165, 140, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
.au-btn:active { transform: translateY(1px) scale(.995); }
.au-btn:focus-visible { outline: 3px solid var(--au-accent-soft); outline-offset: 2px; }
.au-btn[disabled] { opacity: .7; cursor: progress; }
.au-btn svg { width: 18px; height: 18px; }
.au-help { margin-top: 22px; font-size: .8rem; color: var(--au-card-muted); text-align: center; }
.au-help a { color: var(--au-accent-2); font-weight: 600; text-decoration: none; }
.au-help a:hover { text-decoration: underline; }
.au-secure { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .75rem; color: #8b9ab2; }
.au-secure svg { width: 14px; height: 14px; }

/* variant: centred glass card on the dark ground */
.au-center .au-shell { grid-template-columns: 1fr; }
.au-center .au-brand { display: none; }
.au-center .au-formside {
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(25, 195, 166, .30), transparent 60%),
    radial-gradient(800px 560px at 105% 110%, rgba(56, 120, 255, .26), transparent 60%),
    var(--au-ink);
}
.au-center .au-card {
  background: var(--au-card); border-radius: 18px; padding: 36px 34px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.au-center .au-card .au-mobile-logo { display: block; text-align: center; margin-bottom: 22px; }
.au-center .au-card .au-mobile-logo img { max-height: 54px; max-width: 100%; }
.au-center .au-card h2, .au-center .au-card .au-sub { text-align: center; }

/* variant: form on the left, light brand panel on the right */
.au-flip .au-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.au-flip .au-brand { order: 2; }
.au-flip .au-formside { order: 1; }

@media (max-width: 920px) {
  .au-shell { grid-template-columns: 1fr; }
  .au-brand { display: none; }
  .au-formside { min-height: 100vh; min-height: 100dvh; align-items: flex-start; padding-top: 9vh; }
  .au-card .au-mobile-logo { display: block; margin-bottom: 26px; }
  .au-card .au-mobile-logo img { max-height: 52px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* toasts stay readable on both backgrounds */
#toast-container > div { box-shadow: 0 8px 24px rgba(10, 19, 34, .28); border-radius: 10px; opacity: 1; }
