/* Revolution Resources CRM — shared styles */
:root {
  --black: #0a0a0a;
  --near-black: #141414;
  --red: #d81f26;
  --red-dark: #a8161c;
  --gold: #e8a33d;
  --white: #ffffff;
  --off-white: #f6f6f7;
  --gray-100: #eceef0;
  --gray-300: #c7cbd1;
  --gray-500: #8a909a;
  --gray-700: #4d525a;
  --gray-900: #23262b;
  --border: #e2e4e8;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  font-size: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Auth screen ---------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 24px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.auth-card .brand-mark { width: 40px; height: 40px; margin: 0 auto 16px; }
.auth-card h1 { font-size: 1.3rem; text-align: center; margin: 0 0 4px; }
.auth-card .sub { text-align: center; color: var(--gray-500); font-size: 0.85rem; margin: 0 0 24px; }
.auth-error {
  background: #fdecec; color: var(--red-dark); border: 1px solid #f4c6c6;
  border-radius: var(--radius); padding: 10px 14px; font-size: 0.85rem; margin-bottom: 16px; display: none;
}

/* ---------- Form basics ---------- */
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,31,38,0.15);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 4px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; border: 1.5px solid transparent; background: var(--red); color: var(--white);
  transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-900); }
.btn-outline:hover { background: var(--gray-100); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex-shrink: 0; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; padding: 20px 14px;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 20px; }
.sidebar .brand img { width: 28px; height: 28px; }
.sidebar .brand span { font-weight: 800; font-size: 0.95rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.sidebar nav a, .sidebar nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px;
  color: var(--gray-300); font-size: 0.88rem; font-weight: 600; text-align: left;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.sidebar nav a:hover, .sidebar nav button:hover, .sidebar nav a.active, .sidebar nav button.active { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar .user-box { padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px; }
.sidebar .user-box .name { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.sidebar .user-box .role { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

.main { flex-grow: 1; padding: 32px 40px; max-width: 1200px; }
.main h1 { font-size: 1.5rem; margin: 0 0 4px; }
.main .page-sub { color: var(--gray-500); font-size: 0.9rem; margin: 0 0 28px; }

/* ---------- Stat cards ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 1.7rem; font-weight: 800; display: block; }
.stat-card .label { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- Panels & tables ---------- */
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1rem; margin: 0; }
.panel-body { padding: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th { text-align: left; color: var(--gray-500); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 20px; border-bottom: 1px solid var(--border); }
td { padding: 12px 20px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.table-empty { padding: 32px 20px; text-align: center; color: var(--gray-500); font-size: 0.88rem; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.pill-red { background: #fdecec; color: var(--red-dark); }
.pill-gold { background: #fdf3e0; color: #6b4c12; }
.pill-green { background: #e6f6ec; color: #1a7a3d; }
.pill-gray { background: var(--gray-100); color: var(--gray-700); }

/* Live lead feed */
.lead-card {
  border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; background: var(--white); box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.lead-card.claimed { border-left-color: var(--gray-300); opacity: 0.7; }
.lead-card .info strong { display: block; font-size: 0.95rem; }
.lead-card .info span { font-size: 0.8rem; color: var(--gray-500); }
@keyframes pulseIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.lead-card.new { animation: pulseIn .4s ease; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin: 0 0 18px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--black); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius); font-size: 0.86rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 100; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; padding: 10px 16px; overflow-x: auto; }
  .sidebar .brand { padding: 0 12px 0 0; }
  .sidebar nav { flex-direction: row; }
  .sidebar .user-box { display: none; }
  .main { padding: 20px; }
}

/* ---------- Self-service center signup ---------- */
.signup-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 42%) 1fr; background: var(--white); }
.signup-aside { background: linear-gradient(145deg, #090a0c, #1b1d22); color: var(--white); padding: 44px clamp(32px, 5vw, 78px); display: flex; flex-direction: column; justify-content: space-between; }
.signup-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.signup-brand img { width: 36px; height: 36px; }
.signup-kicker, .step-label { display: inline-block; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .11em; margin-bottom: 14px; }
.signup-aside h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; max-width: 620px; margin: 0 0 20px; }
.signup-aside > div > p { color: var(--gray-300); max-width: 540px; font-size: 1.02rem; }
.signup-steps { list-style: none; padding: 0; margin: 42px 0 0; display: grid; gap: 18px; }
.signup-steps li { display: flex; gap: 12px; align-items: center; color: var(--gray-500); }
.signup-steps li > span { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.signup-steps li.active { color: var(--white); }
.signup-steps li.active > span { background: var(--red); border-color: var(--red); }
.signup-steps strong, .signup-steps small { display: block; }
.signup-steps small { font-size: .76rem; color: var(--gray-500); margin-top: 2px; }
.signup-help { color: var(--gray-500); font-size: .84rem; }
.signup-help a { color: var(--white); text-decoration: underline; }
.signup-main { background: #f4f5f7; padding: 48px clamp(20px, 5vw, 72px); overflow-y: auto; }
.signup-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 50px rgba(21,25,33,.08); max-width: 720px; margin: 0 auto; padding: clamp(26px, 5vw, 48px); }
.signup-card h2 { font-size: 1.7rem; margin: 0 0 6px; }
.signup-card .sub { color: var(--gray-500); margin: 0 0 28px; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.signup-grid .full { grid-column: 1 / -1; }
.signup-fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.signup-fieldset legend { font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.signup-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 14px; }
.signup-checks label, .signup-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; font-weight: 500; }
.signup-checks input, .signup-consent input { width: auto; margin-top: 3px; }
.optional { color: var(--gray-500); font-weight: 400; }
.signup-legal { color: var(--gray-500); font-size: .75rem; text-align: center; margin: 14px 0 0; }
.signup-legal a { text-decoration: underline; }
.signup-result { text-align: center; padding: 40px 0; }
.signup-result[hidden] { display: none; }
.result-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--gray-100); font-size: 1.5rem; }
.result-icon.success { background: #e6f6ec; color: #1a7a3d; }
.signup-result p { color: var(--gray-700); margin-bottom: 24px; }
.status-banner { border: 1px solid #f2d39d; background: #fff8eb; color: #6b4c12; padding: 14px 16px; border-radius: 8px; margin-bottom: 24px; }

@media (max-width: 780px) {
  .signup-shell { grid-template-columns: 1fr; }
  .signup-aside { padding: 24px 22px; min-height: auto; }
  .signup-aside > div { margin-top: 40px; }
  .signup-steps, .signup-help { display: none; }
  .signup-main { padding: 20px 14px 40px; }
  .signup-grid { grid-template-columns: 1fr; }
  .signup-grid .full { grid-column: auto; }
  .signup-checks { grid-template-columns: 1fr; }
}

/* ================================================================
   CRM V3 — OPERATIONS CONSOLE
   Dense, focused and clearly separate from the public website.
   All existing functional IDs remain untouched.
   ================================================================ */
:root {
  --black: #101827;
  --near-black: #172238;
  --red: #f0444f;
  --red-dark: #d52e3a;
  --off-white: #eef1f5;
  --gray-100: #e7ebf1;
  --gray-300: #c7ced8;
  --gray-500: #687386;
  --gray-700: #354052;
  --gray-900: #111827;
  --border: #dbe0e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,39,.04), 0 8px 24px rgba(16,24,39,.05);
}
body { background: #eef1f5; color: #172033; }
.app-shell { background: #eef1f5; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 278px;
  padding: 26px 18px 18px;
  background: linear-gradient(180deg,#101827 0%,#0b1220 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand { padding: 0 10px 27px; gap: 13px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.sidebar .brand img { width: 40px; height: 40px; object-fit: contain; }
.sidebar .brand span { font-size: 1.02rem; letter-spacing: -.02em; }
.sidebar .brand span::after { content: "OPERATIONS CONSOLE"; display: block; margin-top: 2px; color: #718096; font-size: .56rem; letter-spacing: .15em; font-weight: 700; }
.sidebar nav { gap: 5px; }
.sidebar nav a, .sidebar nav button { position: relative; min-height: 44px; padding: 11px 13px 11px 42px; border-radius: 9px; color: #93a0b5; font-size: .84rem; }
.sidebar nav a::before, .sidebar nav button::before { content: "•"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: #536078; }
.sidebar nav a:hover, .sidebar nav button:hover { background: rgba(255,255,255,.06); color: white; }
.sidebar nav a.active, .sidebar nav button.active { background: #f0444f; color: white; box-shadow: 0 9px 24px rgba(240,68,79,.22); }
.sidebar nav a.active::before, .sidebar nav button.active::before { color: white; }
.sidebar .user-box { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px; }
.sidebar .user-box .role { color: #718096; }
.sidebar .user-box .btn-outline { border-color: rgba(255,255,255,.18); color: #dbe3ef; }

.main { width: calc(100% - 278px); max-width: none; padding: 44px clamp(28px,4vw,68px) 72px; }
.main::before { content: "REVOLUTION / LIVE OPERATIONS"; display: block; margin-bottom: 34px; color: #8791a2; font-size: .68rem; letter-spacing: .14em; font-weight: 800; }
.main h1 { font-size: clamp(2rem,3vw,2.8rem); letter-spacing: -.045em; line-height: 1; color: #111827; }
.main .page-sub { font-size: .94rem; color: #687386; margin: 9px 0 30px; }
.tab-panel { animation: crmPanelIn .24s ease; }
@keyframes crmPanelIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }

.stat-row { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { position: relative; overflow: hidden; min-height: 126px; padding: 24px; border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.stat-card .num { font-size: 2.25rem; letter-spacing: -.05em; color: #111827; }
.stat-card .label { color: #687386; font-weight: 600; }

.panel { border: 0; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.panel-head { min-height: 64px; padding: 18px 24px; background: #fbfcfe; }
.panel-head h2 { font-size: .96rem; letter-spacing: -.01em; }
.panel-body { padding: 24px; }
.panel-body:has(> table) { padding: 0; overflow-x: auto; }
table { font-size: .84rem; }
th { background: #f7f8fa; color: #788396; padding: 12px 18px; font-size: .66rem; }
td { padding: 15px 18px; }
tbody tr:hover { background: #fafbfc; }
.table-empty { padding: 54px 24px; }

.field { gap: 7px; margin-bottom: 18px; }
.field label { color: #354052; font-size: .76rem; letter-spacing: .02em; }
.field input, .field select, .field textarea { min-height: 46px; padding: 11px 13px; border: 1px solid #ced5df; border-radius: 9px; background: #fbfcfe; }
.field textarea { min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { background: white; border-color: #f0444f; box-shadow: 0 0 0 4px rgba(240,68,79,.11); }
.btn { min-height: 42px; border-radius: 9px; padding: 10px 18px; box-shadow: 0 5px 15px rgba(240,68,79,.15); }
.btn-outline { box-shadow: none; background: white; }
.pill { padding: 5px 10px; letter-spacing: .04em; }
.lead-card { border: 0; border-left: 4px solid var(--red); border-radius: 11px; box-shadow: 0 5px 20px rgba(16,24,39,.06); padding: 18px 20px; }
.modal-backdrop { background: rgba(9,15,26,.72); backdrop-filter: blur(5px); }
.modal { max-width: 560px; border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.toast { border-radius: 9px; background: #111827; }

.auth-screen { background: radial-gradient(circle at 75% 20%,rgba(240,68,79,.19),transparent 30%),linear-gradient(145deg,#0b1220,#172238); }
.auth-card { max-width: 440px; border-radius: 18px; padding: 48px; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.auth-card .brand-mark { width: 58px; height: 58px; }
.auth-card h1 { font-size: 1.7rem; letter-spacing: -.035em; }

.signup-aside { background: radial-gradient(circle at 80% 15%,rgba(240,68,79,.22),transparent 35%),linear-gradient(150deg,#0b1220,#172238); }
.signup-card { border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(16,24,39,.1); }

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 30; width: 100%; height: auto; flex-direction: row; padding: 10px 14px; overflow-x: auto; }
  .sidebar .brand { border: 0; margin: 0; padding: 0 16px 0 0; min-width: max-content; }
  .sidebar .brand img { width: 32px; height: 32px; }
  .sidebar .brand span::after { display: none; }
  .sidebar nav { flex-direction: row; min-width: max-content; }
  .sidebar nav a, .sidebar nav button { min-height: 40px; padding: 9px 13px; }
  .sidebar nav a::before, .sidebar nav button::before { display: none; }
  .sidebar .user-box { display: none; }
  .main { width: 100%; padding: 28px 18px 54px; }
  .main::before { margin-bottom: 22px; }
  .panel-body { padding: 18px; }
}
@media (max-width: 560px) {
  .sidebar .brand span { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 108px; padding: 18px; }
  .stat-card .num { font-size: 1.8rem; }
  .main h1 { font-size: 2rem; }
}

/* ================================================================
   CRM V3.1 — DARK OPERATIONS THEME
   ================================================================ */
:root {
  --black: #070b12;
  --near-black: #0d1420;
  --off-white: #0b111b;
  --white: #f6f8fb;
  --gray-100: #1a2330;
  --gray-300: #344054;
  --gray-500: #8a96a8;
  --gray-700: #c4ccd7;
  --gray-900: #f4f7fb;
  --border: #263142;
  --shadow: 0 1px 0 rgba(255,255,255,.025), 0 18px 45px rgba(0,0,0,.18);
}

body, .app-shell { background: #0b111b; color: #dce3ec; }
.sidebar {
  background: linear-gradient(180deg,#080d15 0%,#05080e 100%);
  border-right-color: #202a39;
}
.sidebar .brand { border-bottom-color: rgba(255,255,255,.09); }
.sidebar .brand img { filter: drop-shadow(0 5px 12px rgba(0,0,0,.45)); }
.sidebar nav a, .sidebar nav button { color: #8592a7; }
.sidebar nav a:hover, .sidebar nav button:hover { background: #151e2c; color: #f6f8fb; }
.sidebar nav a.active, .sidebar nav button.active {
  background: linear-gradient(135deg,#ef3e4b,#c92331);
  color: white;
}
.sidebar .user-box { background: #0f1724; border-color: #253044; }

.main { background: radial-gradient(circle at 88% 0%,rgba(239,62,75,.07),transparent 26%),#0b111b; }
.main::before { color: #667287; }
.main h1 { color: #f6f8fb; }
.main .page-sub { color: #8995a8; }
.stat-card, .panel, .modal { background: #111925; border: 1px solid #222e3e; box-shadow: var(--shadow); }
.stat-card::before { background: #ef3e4b; }
.stat-card .num { color: #f7f9fc; }
.stat-card .label { color: #8490a3; }
.panel-head { background: #141d2a; border-bottom-color: #263142; }
.panel-head h2 { color: #eef2f7; }
.panel-body { background: #111925; }
table { color: #dce3ec; }
th { background: #0e1622; color: #77849a; border-bottom-color: #263142; }
td { border-bottom-color: #222d3d; }
tbody tr:hover { background: #151f2d; }
.table-empty { color: #758196; }

.field label { color: #bdc6d3; }
.field input, .field select, .field textarea,
.panel-head select {
  color: #edf1f7 !important;
  background: #0c1420 !important;
  border-color: #344054 !important;
}
.field input::placeholder, .field textarea::placeholder { color: #627086; }
.field input:focus, .field select:focus, .field textarea:focus {
  color: white;
  background: #0a111c;
  border-color: #ef3e4b;
}
.field select option, select option { color: #edf1f7; background: #111925; }
.btn-outline { color: #dce3ec; background: transparent; border-color: #455166; }
.btn-outline:hover { color: white; background: #1b2636; }
.pill-gray { color: #c9d1dc; background: #263142; }
.pill-red { color: #ffabb1; background: rgba(239,62,75,.16); }
.pill-gold { color: #f3c977; background: rgba(232,163,61,.14); }
.pill-green { color: #7fe0a4; background: rgba(63,174,100,.14); }
.lead-card { color: #dce3ec; background: #141d2a; }
.lead-card .info span { color: #8995a8; }
.modal-backdrop { background: rgba(1,4,9,.82); }
.toast { background: #f4f7fb; color: #101827; }

.auth-screen {
  background: radial-gradient(circle at 75% 15%,rgba(239,62,75,.18),transparent 32%),linear-gradient(145deg,#060a11,#0e1725);
}
.auth-card {
  color: #e8edf4;
  background: #111925;
  border: 1px solid #283447;
  box-shadow: 0 32px 100px rgba(0,0,0,.52);
}
.auth-card .brand-mark {
  width: 66px;
  height: 66px;
  padding: 6px;
  filter: drop-shadow(0 7px 14px rgba(0,0,0,.35));
}
.auth-card h1 { color: #f7f9fc; }
.auth-card .sub { color: #8f9aad; }
.auth-card .field input { background: #0a111c !important; }
.auth-card > p:last-child { color: #8f9aad !important; }

.signup-main { background: #0b111b; }
.signup-card { color: #dce3ec; background: #111925; border: 1px solid #263142; }
.signup-card h2 { color: #f7f9fc; }
.signup-card .sub, .signup-legal { color: #8b97aa; }
.status-banner { color: #f2cb83; background: rgba(232,163,61,.1); border-color: rgba(232,163,61,.35); }

/* CRM V4 login experience */
.auth-screen { position:relative; display:grid; grid-template-columns:1.2fr .8fr; padding:0; overflow:hidden; }
.login-atmosphere { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.login-atmosphere i { position:absolute; display:block; border:1px solid rgba(255,255,255,.08); border-radius:50%; animation:loginFloat 11s ease-in-out infinite; }
.login-atmosphere i:nth-child(1) { width:600px; height:600px; left:-220px; bottom:-310px; }
.login-atmosphere i:nth-child(2) { width:420px; height:420px; left:33%; top:-260px; border-color:rgba(240,68,79,.18); animation-delay:-4s; }
.login-atmosphere i:nth-child(3) { width:190px; height:190px; left:49%; bottom:12%; border-color:rgba(240,68,79,.25); animation-delay:-8s; }
@keyframes loginFloat { 50% { transform:translate3d(16px,-24px,0) scale(1.06); } }
.login-story { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:space-between; padding:42px clamp(42px,7vw,120px); color:#eef3fb; background:linear-gradient(145deg,rgba(7,12,21,.96),rgba(12,22,38,.82)); border-right:1px solid rgba(255,255,255,.08); }
.login-brand { display:flex; align-items:center; gap:12px; width:max-content; color:#fff; font-weight:800; }
.login-brand img { width:45px; height:45px; object-fit:contain; filter:drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.login-brand small { display:block; margin-top:3px; color:#8491a5; font-family:monospace; font-size:.58rem; letter-spacing:.14em; }
.login-story-copy { max-width:560px; margin:90px 0 auto; }
.login-kicker,.auth-kicker { display:flex; align-items:center; gap:9px; color:#fa5963; font-family:monospace; font-size:.68rem; font-weight:800; letter-spacing:.14em; }
.login-kicker i { width:7px; height:7px; border-radius:50%; background:#fa5963; box-shadow:0 0 0 5px rgba(250,89,99,.12); animation:statusPulse 1.8s ease-in-out infinite; }
@keyframes statusPulse { 50% { transform:scale(.7); opacity:.6; } }
.login-story-copy h1 { max-width:580px; margin:21px 0; color:#fff; font-size:clamp(3.6rem,6vw,6.2rem); font-weight:800; letter-spacing:-.07em; line-height:.88; }
.login-story-copy h1 em { color:#f0444f; font-style:normal; }
.login-story-copy > p:last-child { max-width:430px; color:#aab5c5; font-size:1.05rem; line-height:1.7; }
.login-status { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:22px; border-top:1px solid rgba(255,255,255,.12); font-family:monospace; font-size:.67rem; letter-spacing:.08em; }
.login-status span { color:#83e3a5; }
.login-status span i { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#83e3a5; box-shadow:0 0 0 5px rgba(131,227,165,.1); }
.login-status small { color:#7f8b9f; font-family:inherit; letter-spacing:0; }
.login-panel { position:relative; z-index:1; display:grid; place-items:center; padding:38px; background:rgba(5,9,16,.56); }
.auth-card { width:100%; max-width:430px; padding:0; background:transparent; border:0; box-shadow:none; }
.auth-card h2 { margin:10px 0 8px; color:#f4f7fb; font-size:2rem; letter-spacing:-.045em; line-height:1; }
.auth-card .sub { margin:0 0 34px; text-align:left; color:#8c98ab; font-size:.9rem; }
.auth-card .field { margin-bottom:19px; }
.auth-card .field label { color:#c5ceda; font-size:.74rem; letter-spacing:.06em; }
.auth-card .field input { min-height:52px; border-radius:8px; }
.auth-card .btn { min-height:52px; justify-content:space-between; margin-top:8px; padding-inline:18px; background:linear-gradient(135deg,#f0444f,#cc2937); box-shadow:0 12px 28px rgba(240,68,79,.2); }
.auth-card .btn span { font-size:1.1rem; }
.auth-help { margin:26px 0 0; text-align:left; color:#7f8b9e; font-size:.8rem; }
.auth-help a { color:#d8e0eb; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:860px) { .auth-screen { grid-template-columns:1fr; } .login-story { min-height:330px; padding:28px; } .login-story-copy { margin:46px 0 0; } .login-story-copy h1 { font-size:clamp(3.1rem,11vw,4.8rem); } .login-status { display:none; } .login-panel { padding:48px 28px; } }
@media (max-width:520px) { .login-story { min-height:285px; } .login-brand img { width:36px; height:36px; } .login-story-copy { margin-top:34px; } .login-story-copy > p:last-child { display:none; } .login-panel { padding:42px 22px; } .auth-card h2 { font-size:1.75rem; } }
