:root {
  --navy: #0e0e0e;
  --navy-2: #262626;
  --gold: #c5a045;
  --gold-soft: #f8f1de;
  --bg: #f4f5f8;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #667085;
  --line: #e4e7ec;
  --ok: #157a4a;
  --ok-soft: #e3f4ea;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[dir="rtl"] { --font: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .04em; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-mark-unused {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  font-family: 'Inter', sans-serif;
}
.brand small { display: block; font-weight: 400; opacity: .7; font-size: 12px; }
.topbar .spacer { flex: 1; }
.topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 12px;
  position: sticky;
  top: 56px;
  z-index: 19;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 12px 14px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.nav a.active { color: var(--navy); border-bottom-color: var(--gold); }

.container { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
.container.narrow { max-width: 560px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { flex: 1; min-width: 160px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 180px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card + .card { margin-top: 14px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 22px; font-weight: 700; margin-top: 4px; }
.kpi.accent { border-top: 3px solid var(--gold); }

/* ---------- buttons & forms ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #f9fafb; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0e0e0e; }
.btn-gold:hover { filter: brightness(1.05); background: var(--gold); }
.btn-danger { color: var(--bad); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 18px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #344054; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(197, 160, 69, .25); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.help { font-size: 13px; color: var(--muted); margin-top: 4px; }
input.ltr, .ltr { direction: ltr; text-align: start; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; font-weight: 600; white-space: nowrap; }
html[dir="rtl"] th { text-transform: none; letter-spacing: 0; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; background: #fafbfc; }
td.actions { white-space: nowrap; text-align: end; }
td.actions .btn + .btn { margin-inline-start: 4px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-gold { background: var(--gold-soft); color: #7a5b17; }
.badge-muted { background: #eef0f3; color: var(--muted); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 12px; z-index: 100; overflow-y: auto;
}
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.modal.wide { max-width: 760px; }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-head h2 { flex: 1; }
.modal-body { padding: 18px; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.x-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; bottom: 16px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.2); max-width: 90vw; animation: pop .2s ease; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- misc ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card { width: 100%; max-width: 400px; }
.login-card .brand { color: var(--navy); margin-bottom: 18px; }
.lang-select { width: auto; padding: 6px 10px; border-radius: 8px; font-size: 13px; background: transparent; color: inherit; border-color: rgba(255,255,255,.3); }
.lang-select option { color: var(--text); }
.lang-light { border-color: #d0d5dd; color: var(--text); }
.qr-box { background: #fff; border-radius: 12px; padding: 12px; display: inline-block; line-height: 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- scanner ---------- */
#reader { width: 100%; border-radius: 12px; overflow: hidden; background: #000; min-height: 260px; }
#reader video { border-radius: 12px; }
.offer-pick { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.offer-pick + .offer-pick { margin-top: 8px; }
.offer-pick.selected { border-color: var(--gold); background: var(--gold-soft); }
.offer-pick.disabled { opacity: .5; cursor: not-allowed; }
.offer-pick input { display: none; }
.big-amount { font-size: 24px; font-weight: 700; text-align: center; direction: ltr; }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-line.total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 10px; }

/* ---------- client page ---------- */
.client-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 24px 16px 70px; text-align: center; }
.client-hero .lang-select { margin-bottom: 14px; }
.client-hero h1 { font-size: 24px; margin-top: 4px; }
.client-hero .event { opacity: .8; margin-top: 4px; }
.client-qr { margin: -56px auto 0; max-width: 300px; text-align: center; }
.client-qr .qr-box { box-shadow: 0 10px 30px rgba(0,0,0,.35); width: 240px; }
.client-qr .code { margin-top: 10px; font-size: 20px; font-weight: 700; }
.offer-card { display: flex; gap: 14px; align-items: flex-start; }
.offer-logo { width: 52px; height: 52px; border-radius: 10px; background: var(--gold-soft); color: #7a5b17; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.offer-logo img { width: 100%; height: 100%; object-fit: cover; }
.offer-value { font-size: 20px; font-weight: 800; color: var(--gold); }

/* ---------- landing ---------- */
.landing { min-height: 100vh; background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.landing .card { color: var(--text); text-align: start; max-width: 420px; width: 100%; }

/* ---------- print ---------- */
@media print {
  .topbar, .nav, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- logo ---------- */
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.login-card .brand-logo, .center-page .brand-logo { width: 56px; height: 56px; }
.landing-logo { width: 130px; height: 130px; object-fit: contain; display: block; margin: 0 auto; }
.hero-logo { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 8px; }

/* ---------- black & gold theme accents ---------- */
.topbar { border-bottom: 2px solid var(--gold); }
.topbar .brand small { color: var(--gold); opacity: 1; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.btn-primary:hover { background: var(--navy-2); }
.nav a.active { color: var(--navy); border-bottom-color: var(--gold); }
.landing, .client-hero { background: radial-gradient(circle at 50% 0%, #2a2a2a 0%, #0e0e0e 70%); }
.landing h1, .client-hero h1 { color: var(--gold); }
.kpi.accent { border-top-color: var(--gold); }
.spinner { border-top-color: var(--gold); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.offer-value { color: #a8862f; }

/* =====================================================================
   FULL BLACK & GOLD THEME (overrides everything above)
   ===================================================================== */
:root {
  --navy: #000000;
  --navy-2: #1a1a1a;
  --gold: #c5a045;
  --gold-2: #d9b85c;
  --gold-soft: rgba(197, 160, 69, .14);
  --bg: #0a0a0a;
  --card: #141414;
  --card-2: #1b1b1b;
  --text: #f3eee2;
  --muted: #9d978a;
  --line: #2a2a2a;
  --ok: #4cc38a;   --ok-soft: rgba(76, 195, 138, .14);
  --bad: #ff6b5e;  --bad-soft: rgba(255, 107, 94, .14);
  --warn: #e6b450; --warn-soft: rgba(230, 180, 80, .14);
  --shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 0 1px rgba(197,160,69,.04);
  color-scheme: dark;
}
body { background: var(--bg); color: var(--text); }
a { color: var(--gold); }
h1, h2, h3 { color: var(--text); }
.page-head h1 { color: var(--gold); }

.topbar { background: #000; border-bottom: 1px solid var(--gold); }
.topbar .brand { color: var(--gold); }
.topbar .btn-ghost { color: var(--gold); border-color: rgba(197,160,69,.45); }
.nav { background: #0f0f0f; border-bottom: 1px solid var(--line); }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--gold-2); }
.nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.card, .kpi, .table-wrap, .modal { background: var(--card); border-color: var(--line); }
.kpi .value { color: var(--text); }
.kpi.accent { border-top: 3px solid var(--gold); }
.kpi.accent .value { color: var(--gold); }

/* buttons */
.btn { background: var(--card-2); border-color: #333; color: var(--text); }
.btn:hover { background: #242424; border-color: var(--gold); }
.btn-primary, .btn-gold { background: var(--gold); border-color: var(--gold); color: #000; }
.btn-primary:hover, .btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); filter: none; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-ghost { background: transparent; }

/* forms */
label.field > span { color: #cfc8b8; }
input, select, textarea { background: #0d0d0d; border-color: #333; color: var(--text); }
input::placeholder, textarea::placeholder { color: #6b665c; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,160,69,.2); }
input[type="checkbox"] { accent-color: var(--gold); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(3) hue-rotate(5deg); }
.help { color: var(--muted); }
.check { border-bottom-color: var(--line); }
select option { background: #141414; color: var(--text); }

/* tables */
th { background: #101010; color: var(--gold); border-bottom-color: var(--line); }
td { border-bottom-color: var(--line); }
tbody tr:hover td { background: rgba(197,160,69,.04); }
tfoot td { background: #101010; color: var(--gold); }

/* badges & alerts */
.badge-gold { background: var(--gold-soft); color: var(--gold-2); }
.badge-muted { background: #222; color: var(--muted); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* modal & toast */
.modal-backdrop { background: rgba(0,0,0,.75); }
.modal { box-shadow: 0 20px 50px rgba(0,0,0,.8), 0 0 0 1px rgba(197,160,69,.25); }
.modal-head h2 { color: var(--gold); }
.modal-head, .modal-foot { border-color: var(--line); }
.x-btn { color: var(--muted); }
.toast { background: #1b1b1b; color: var(--text); border: 1px solid var(--gold); }
.toast.ok { background: #10251a; border-color: var(--ok); color: #d6f5e4; }
.toast.bad { background: #2a1210; border-color: var(--bad); color: #ffdcd8; }

/* language select */
.lang-select { background: #0d0d0d; color: var(--gold); border-color: rgba(197,160,69,.45); }
.lang-light { background: #0d0d0d; color: var(--gold); border-color: #333; }

/* login / message screens */
.center-page { background: radial-gradient(circle at 50% 0%, #1c1a14 0%, #0a0a0a 60%); }
.login-card { border-color: rgba(197,160,69,.35); }
.login-card .brand { color: var(--gold); }

/* landing & client hero */
.landing, .client-hero { background: radial-gradient(circle at 50% 0%, #1f1c14 0%, #000 70%); color: var(--text); }
.landing h1, .client-hero h1 { color: var(--gold); }
.landing .card { color: var(--text); border-color: rgba(197,160,69,.35); }
.client-hero { border-bottom: 1px solid rgba(197,160,69,.35); }

/* QR stays white so phones can scan it */
.qr-box { background: #fff; }
.client-qr .qr-box { box-shadow: 0 0 0 3px var(--gold), 0 12px 30px rgba(0,0,0,.6); }
.client-qr .code { color: var(--gold); }

/* scanner & offers */
.offer-pick { background: var(--card-2); border-color: #333; }
.offer-pick.selected { border-color: var(--gold); background: var(--gold-soft); }
.summary-line.total { border-top-color: var(--line); color: var(--gold); }
.success-mark { background: var(--gold-soft); color: var(--gold); border: 2px solid var(--gold); }
.offer-logo { background: var(--gold-soft); color: var(--gold); }
.offer-value { color: var(--gold); }
.divider { background: var(--line); }
.spinner { border-color: #2a2a2a; border-top-color: var(--gold); }
.empty { color: var(--muted); }

/* printing stays light */
@media print {
  body { background: #fff; color: #000; }
}

/* =====================================================================
   LOGIN SCREEN
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #000; }
.auth-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 40px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(197,160,69,.22) 0%, rgba(197,160,69,0) 55%),
    linear-gradient(180deg, #0c0b08 0%, #000 100%);
  border-inline-end: 1px solid rgba(197,160,69,.35);
}
.auth-ornament {
  position: absolute; inset: 22px; border: 1px solid rgba(197,160,69,.28); border-radius: 18px; pointer-events: none;
}
.auth-ornament::before, .auth-ornament::after {
  content: ''; position: absolute; width: 46px; height: 46px; border: 2px solid var(--gold);
}
.auth-ornament::before { top: -2px; inset-inline-start: -2px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 18px; }
.auth-ornament::after { bottom: -2px; inset-inline-end: -2px; border-inline-start: 0; border-top: 0; border-end-end-radius: 18px; }
.auth-logo { width: min(300px, 60%); height: auto; filter: drop-shadow(0 10px 40px rgba(197,160,69,.35)); animation: authGlow 6s ease-in-out infinite; }
@keyframes authGlow { 50% { filter: drop-shadow(0 10px 60px rgba(197,160,69,.55)); } }
.auth-title { margin-top: 22px; font-size: 38px; font-weight: 700; letter-spacing: .02em; color: var(--gold) !important; }
.auth-rule { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--gold); width: 220px; }
.auth-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.auth-rule i { font-style: normal; font-size: 11px; }
.auth-tag { color: #b8b09e; max-width: 380px; margin: 0; font-size: 16px; line-height: 1.7; }

.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 28px;
  background: radial-gradient(circle at 80% 10%, #17140d 0%, #070707 55%); }
.auth-top { position: absolute; top: 22px; inset-inline-end: 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-logo-sm { display: none; }
.auth-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; }
html[dir="rtl"] .auth-eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.auth-h { font-size: 34px !important; margin: 6px 0 30px !important; color: #fff !important; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-field > span { display: block; font-size: 14px; font-weight: 600; color: #d8d0bd; margin-bottom: 8px; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > svg { position: absolute; inset-inline-start: 16px; width: 20px; height: 20px; color: var(--gold); pointer-events: none; }
.auth-input input {
  height: 58px; font-size: 16px; padding-inline-start: 50px; padding-inline-end: 50px;
  background: #0e0e0e; border: 1px solid #2f2b22; border-radius: 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
html[dir="rtl"] .auth-input input { text-align: right; }
.auth-input input:hover { border-color: #4a4130; }
.auth-input input:focus { background: #121110; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197,160,69,.15); }
.auth-eye { position: absolute; inset-inline-end: 10px; width: 38px; height: 38px; border: 0; background: transparent; color: #7d766a; cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.auth-eye svg { width: 20px; height: 20px; }
.auth-eye:hover, .auth-eye.on { color: var(--gold); background: rgba(197,160,69,.1); }

.auth-submit {
  height: 58px; font-size: 17px; border-radius: 14px; margin-top: 6px; letter-spacing: .02em;
  background: linear-gradient(135deg, #e0bf66 0%, #c5a045 45%, #a8852e 100%) !important; color: #000 !important; border: 0 !important;
  box-shadow: 0 10px 30px rgba(197,160,69,.25); transition: transform .15s, box-shadow .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(197,160,69,.35); }
.auth-submit.loading span { visibility: hidden; }
.auth-submit.loading::after {
  content: ''; position: absolute; width: 22px; height: 22px; border: 2.5px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite;
}
.auth-submit { position: relative; }
.auth-foot { margin-top: 34px; text-align: center; color: #5f5a50; font-size: 13px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; align-items: flex-start; padding-top: 80px;
    background: radial-gradient(ellipse at 50% 0%, rgba(197,160,69,.18) 0%, rgba(0,0,0,0) 50%), #050505; }
  .auth-logo-sm { display: block; width: 120px; margin: 0 auto 18px; filter: drop-shadow(0 8px 30px rgba(197,160,69,.35)); }
  .auth-box { text-align: center; }
  .auth-form { text-align: start; }
  .auth-h { font-size: 28px !important; margin-bottom: 24px !important; }
}
