/* ============================================================
   BGRetail Admin — Auth & account screen components.
   Token blocks ([data-theme] light/dark) live in theme.css on
   :root / html[data-theme]; this file holds only the auth-specific
   components: stage, brand lockup, inputs, banners, OTP, password
   requirements, company picker, split panel, invite cards.
   ============================================================ */

/* ---------- Auth stage (a full screen) ---------- */
.auth-stage {
  width: 100%; height: 100%;
  background: var(--app-bg); color: var(--text);
  font-family: var(--font-sans);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative; overflow: hidden;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11','ss01';
}
/* faint corner brandmark watermark for empty canvas warmth */
.auth-stage .wm {
  position: absolute; right: -40px; bottom: -56px; font-size: 320px; line-height: 1;
  font-weight: 800; color: var(--text); opacity: .03; letter-spacing: -0.04em; pointer-events: none;
}
.auth-card {
  position: relative; z-index: 1; width: 380px; max-width: 100%;
  background: var(--card); border: 1px solid var(--hair); border-radius: 22px;
  box-shadow: var(--sh-pop); padding: 32px 30px 28px;
}
.auth-card.wide { width: 440px; }

/* ---------- Brand lockup ---------- */
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.auth-brand .mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink-btn); color: var(--on-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; flex-shrink: 0;
}
.auth-brand .nm { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.auth-brand .sb { font-size: 11.5px; color: var(--text-3); font-weight: 600; margin-top: 3px; }

.auth-h { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.auth-sub { font-size: 13.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.auth-field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 10px; }
.auth-field-label .flabel { white-space: nowrap; margin: 0; }
.auth-link { white-space: nowrap; }
.auth-link { font-size: 12.5px; font-weight: 700; color: var(--acc-text); cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.auth-foot a, .auth-foot .lk { color: var(--text); font-weight: 700; cursor: pointer; }

/* inline "remember me" style checkbox row */
.auth-check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); font-weight: 600; cursor: pointer; user-select: none; }
.auth-check input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--acc); cursor: pointer; flex-shrink: 0; }

/* input with leading icon + trailing affordance */
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > .lead { position: absolute; left: 13px; color: var(--text-3); display: grid; place-items: center; pointer-events: none; }
.auth-input > input {
  width: 100%; background: var(--card-2); border: 1px solid var(--hair); border-radius: 12px;
  padding: 12px 14px 12px 40px; font-size: 14px; outline: none; transition: all .15s; color: var(--text);
}
.auth-input > input::placeholder { color: var(--text-4); }
.auth-input > input:focus { background: var(--card); border-color: var(--acc); }
.auth-input.err > input { border-color: var(--dang); background: var(--dang-soft); }
.auth-input.locked > input { opacity: .6; }
.auth-input > .trail { position: absolute; right: 8px; color: var(--text-3); padding: 6px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.auth-input > .trail:hover { color: var(--text); background: var(--card-2); }
.auth-input > input:disabled { color: var(--text-3); cursor: not-allowed; }

/* big primary submit */
.auth-btn {
  width: 100%; margin-top: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; text-decoration: none;
  background: var(--ink-btn); color: var(--on-ink); border: 1px solid transparent; transition: all .14s;
}
.auth-btn:hover { background: var(--ink-btn-h); }
.auth-btn.accent { background: var(--acc); color: #fff; }
.auth-btn.accent:hover { background: var(--acc-2); }
.auth-btn:disabled { opacity: .45; cursor: not-allowed; }
.auth-btn.ghost { background: transparent; color: var(--text); border-color: var(--hair); margin-top: 12px; }
.auth-btn.ghost:hover { background: var(--card-2); }

/* ---------- inline banners ---------- */
.auth-banner { display: flex; gap: 11px; padding: 12px 13px; border-radius: 12px; font-size: 12.8px; line-height: 1.45; margin-top: 18px; }
.auth-banner .bi { flex-shrink: 0; margin-top: 1px; }
.auth-banner.err  { background: var(--dang-soft); color: var(--dang); }
.auth-banner.warn { background: var(--warn-soft); color: var(--warn); }
.auth-banner.info { background: var(--info-soft); color: var(--info); }
.auth-banner b { font-weight: 800; }

/* context chip (chosen company / email) */
.auth-ctx {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--hair); margin-top: 20px; font-size: 13px;
}
.auth-ctx .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--ink-btn); color: var(--on-ink); display: grid; place-items: center; flex-shrink: 0; }
.auth-ctx .gr { flex: 1; min-width: 0; }
.auth-ctx .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-ctx .s { color: var(--text-3); font-size: 11.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-ctx .chg { font-size: 11.5px; font-weight: 700; color: var(--acc-text); cursor: pointer; flex-shrink: 0; }

/* ---------- OTP (6 cells) ---------- */
.otp { display: flex; gap: 9px; margin-top: 22px; justify-content: center; }
.otp .cell {
  width: 48px; height: 58px; border-radius: 13px; background: var(--card-2); border: 1.5px solid var(--hair);
  display: grid; place-items: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 25px; font-weight: 700; transition: all .15s; color: var(--text);
}
.otp .cell.filled { border-color: var(--hair-strong); background: var(--card); }
.otp .cell.cur { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); background: var(--card); }

/* ---------- password requirements ---------- */
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 14px; }
.reqs .r { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.reqs .r .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--hair); display: grid; place-items: center; color: var(--text-4); flex-shrink: 0; }
.reqs .r.ok { color: var(--acc-text); }
.reqs .r.ok .dot { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); }

/* ---------- company picker ---------- */
.co-list { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.co-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; text-align: left; width: 100%;
  background: var(--card-2); border: 1.5px solid var(--hair); transition: all .14s; cursor: pointer;
}
.co-row:hover { border-color: var(--acc); background: var(--card); }
.co-row .ava { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; font-family: var(--font-mono); }
.co-row .gr { flex: 1; min-width: 0; }
.co-row .t { font-weight: 700; font-size: 14px; }
.co-row .s { color: var(--text-3); font-size: 12px; margin-top: 1px; }
.co-row .ch { color: var(--text-4); flex-shrink: 0; }

/* ---------- big status icon (success/security screens) ---------- */
.auth-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.auth-icon.acc  { background: var(--acc-soft);  color: var(--acc-text); }
.auth-icon.dang { background: var(--dang-soft); color: var(--dang); }
.auth-icon.info { background: var(--info-soft); color: var(--info); }
.auth-center { text-align: center; }

/* ---------- two-column / split composition ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.auth-split .pane-brand {
  background: var(--ink-btn); color: var(--on-ink); padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-split .pane-brand .wm2 { position: absolute; right: -50px; bottom: -70px; font-size: 300px; font-weight: 800; opacity: .07; line-height: 1; letter-spacing: -0.04em; }
.auth-split .pane-form { background: var(--app-bg); display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-split .pane-form .auth-card { box-shadow: none; border: none; background: transparent; padding: 0; width: 340px; }
.pane-brand .pl { position: relative; z-index: 1; }
.pane-brand .quote { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; max-width: 320px; position: relative; z-index: 1; }
.pane-brand .meta { font-size: 12.5px; opacity: .65; position: relative; z-index: 1; display: flex; gap: 7px; align-items: center; }

/* invite info card */
.invite-info {
  background: var(--card-2); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; margin-top: 4px;
  display: flex; gap: 12px; align-items: center;
}
.invite-info .ava { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.resend { font-size: 12px; color: var(--text-3); margin-top: 14px; text-align: center; }
.resend .lk { color: var(--acc-text); font-weight: 700; cursor: pointer; }
.resend .lk.dim { color: var(--text-4); cursor: default; text-decoration: none; }
