/* ============================================================
   Unique Securities — Split-screen Login Portal Styling
   Loaded by all CRM pages (meetings_crm, admin, tasks, reports, templates)
   ============================================================ */

.lp-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: stretch;
  background: #0a1f4d;
  font-family: 'Inter','Segoe UI',system-ui,Arial,sans-serif;
}

.lp-overlay.hidden { display: none; }

/* LEFT — brand panel */
.lp-brand {
  flex: 1.1;
  background: radial-gradient(ellipse at top right, #1e3a8a 0%, #0a1f4d 60%, #050d28 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.lp-brand::before {
  content: ""; position: absolute; top: -100px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(202,165,114,.08), transparent 70%);
  pointer-events: none;
}
.lp-brand::after {
  content: ""; position: absolute; bottom: -150px; left: -150px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%);
  pointer-events: none;
}
.lp-logo-card {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  min-height: 90px;
}
.lp-logo-card img {
  display: block;
  max-height: 96px;
  max-width: 320px;
  width: auto; height: auto;
  object-fit: contain;
}
.lp-tagline {
  font-size: 11.5px; letter-spacing: 3px;
  color: rgba(255,255,255,.62); font-weight: 600;
  text-transform: uppercase; margin-bottom: 48px;
}
.lp-chip-since {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: rgba(202,165,114,.14);
  border: 1px solid rgba(202,165,114,.45);
  border-radius: 22px;
  font-size: 11.5px; letter-spacing: 2px; font-weight: 700;
  color: #e4c590; margin-bottom: 22px;
}
.lp-headline {
  font-size: 44px; line-height: 1.15; font-weight: 700;
  margin-bottom: 22px; letter-spacing: -1px;
}
.lp-headline em {
  font-style: italic; font-weight: 700;
  /* Solid gold colour avoids background-clip:text issues that chopped italic descenders ('d') */
  color: #f4ce8e;
  /* Tiny padding ensures the italic slant doesn't clip against the next punctuation */
  padding-right: 4px;
  display: inline-block;
}
.lp-blurb {
  font-size: 14.5px; line-height: 1.7;
  color: rgba(255,255,255,.78); max-width: 520px;
}
.lp-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.lp-stat {
  padding: 9px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  font-size: 12.5px; font-weight: 600;
  color: #fff;
  display: inline-flex; align-items: center; gap: 7px;
}
.lp-stat b { color: #f4ce8e; font-weight: 800; }
.lp-footer {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.lp-footer-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-footer-chip {
  padding: 5px 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 6px;
  font-size: 10.5px; letter-spacing: 1px; font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* RIGHT — login form panel */
.lp-form {
  flex: 0.9;
  background: #fff;
  padding: 50px 60px 40px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 540px;
}
.lp-welcome {
  font-size: 11.5px; letter-spacing: 4px; color: #c9a35d;
  font-weight: 700; margin-bottom: 8px;
}
.lp-title {
  font-size: 30px; font-weight: 700; color: #0f172a;
  letter-spacing: -.5px; margin-bottom: 8px;
}
.lp-sub {
  font-size: 13.5px; color: #64748b; margin-bottom: 28px;
}
.lp-field { margin-bottom: 16px; }
.lp-label {
  font-size: 10.5px; letter-spacing: 2px;
  color: #94a3b8; font-weight: 700;
  text-transform: uppercase; margin-bottom: 6px;
  display: block;
}
.lp-input {
  width: 100%; padding: 13px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px; outline: none;
  font-family: inherit; background: #fff;
  color: #0f172a; transition: .15s;
}
.lp-input:focus {
  border-color: #c9a35d;
  box-shadow: 0 0 0 3px rgba(201,163,93,.15);
}
.lp-helper {
  font-size: 11.5px; color: #94a3b8;
  margin-top: 5px;
}
.lp-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 9px;
}
.lp-chip {
  padding: 6px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff; color: #1e3a8a;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: .12s;
}
.lp-chip:hover { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.lp-chip.active { background: linear-gradient(135deg,#caa572,#a07f47); color: #fff; border-color: #a07f47; }

.lp-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; margin-bottom: 18px;
}
.lp-toggle {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: #64748b; cursor: pointer;
  user-select: none;
}
.lp-toggle input { width: 14px; height: 14px; cursor: pointer; accent-color: #c9a35d; }
.lp-forgot {
  font-size: 12.5px; color: #c9a35d;
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.lp-forgot:hover { text-decoration: underline; }

.lp-submit {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #d4b06e, #b08c4d);
  border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
  transition: .15s; box-shadow: 0 6px 18px rgba(176,140,77,.28);
}
.lp-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(176,140,77,.4); }
.lp-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.lp-need-help {
  text-align: center; font-size: 12px; color: #94a3b8;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
.lp-need-help b { color: #1e3a8a; }

.lp-error {
  color: #dc2626; font-size: 12.5px; font-weight: 500;
  text-align: center; min-height: 18px; margin-top: 12px;
}
.lp-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Splash (auth-checking) */
.lp-splash {
  position: fixed; inset: 0; z-index: 1500;
  background: radial-gradient(ellipse at top right, #1e3a8a 0%, #0a1f4d 60%, #050d28 100%);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.lp-splash-icon {
  width: 72px; height: 72px;
  background: #fff;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.lp-splash-icon img { width: 56px; height: 56px; }
.lp-splash-text { font-size: 13px; letter-spacing: 1px; opacity: .8; }

/* Responsive — stack on narrow screens */
@media (max-width: 920px) {
  .lp-overlay { flex-direction: column; overflow-y: auto; }
  .lp-brand {
    padding: 32px 28px; flex: none;
  }
  .lp-headline { font-size: 30px; }
  .lp-tagline { margin-bottom: 24px; }
  .lp-form {
    padding: 36px 28px; flex: none;
    max-width: none;
  }
}
