
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap');
  * { box-sizing: border-box; margin: 0; padding: 0; }

  .crm-root {
    min-height: 100vh;
    display: flex;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: #0d1117;
  }

  .left-panel {
    width: 46%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .left-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=700&q=80&fit=crop') center/cover no-repeat;
  }

  .left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,18,35,0.82) 0%, rgba(6,14,28,0.72) 40%, rgba(4,10,22,0.88) 100%);
  }

  .left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 36px 32px;
    justify-content: space-between;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-icon {
    width: 34px; height: 34px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
  }

  .brand-icon i { color: #fff; font-size: 17px; }

  .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
  }

  .brand-name span { color: #60a5fa; }

  .hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0 16px;
  }

  .hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1.38;
    margin-bottom: 12px;
  }

  .hero-text h1 em { font-style: italic; color: #60a5fa; }

  .hero-text p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.65;
    font-weight: 300;
    max-width: 250px;
  }

  .team-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    background: rgba(255,255,255,0.07);
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 40px;
    padding: 8px 14px 8px 8px;
    width: fit-content;
  }

  .avatars {
    display: flex;
  }

  .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    margin-left: -8px;
    overflow: hidden;
    background: #1e3a5f;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #93c5fd;
  }

  .avatar:first-child { margin-left: 0; }

  .team-badge-text {
    font-size: 12px;
    color: #cbd5e1;
  }

  .team-badge-text strong {
    color: #fff;
    font-weight: 500;
    display: block;
    font-size: 12px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px;
    overflow: hidden;
    position: relative;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
  }

  .stat-card.blue::before { background: #3b82f6; }
  .stat-card.green::before { background: #22c55e; }
  .stat-card.amber::before { background: #f59e0b; }
  .stat-card.purple::before { background: #a855f7; }

  .stat-icon {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .stat-card.blue .stat-icon { color: #60a5fa; }
  .stat-card.green .stat-icon { color: #4ade80; }
  .stat-card.amber .stat-icon { color: #fbbf24; }
  .stat-card.purple .stat-icon { color: #c084fc; }

  .stat-num {
    font-size: 22px;
    font-weight: 500;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 3px;
  }

  .stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .stat-trend {
    font-size: 11px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .stat-card.blue .stat-trend { color: #60a5fa; }
  .stat-card.green .stat-trend { color: #4ade80; }
  .stat-card.amber .stat-trend { color: #fbbf24; }
  .stat-card.purple .stat-trend { color: #c084fc; }

  /* SPARKLINE */
  .sparkline { margin-top: 8px; height: 28px; }
  .sparkline svg { width: 100%; height: 100%; overflow: visible; }

  /* RIGHT PANEL */
  .right-panel {
    flex: 1;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
  }

  .login-card { width: 100%; max-width: 340px; }

  .login-header { margin-bottom: 26px; }
  .login-header h2 { font-size: 22px; font-weight: 500; color: #f1f5f9; margin-bottom: 4px; }
  .login-header p { font-size: 13px; color: #475569; }

  .form-group { margin-bottom: 15px; }

  .form-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .input-wrap { position: relative; }
  .input-wrap i.prefix {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #475569; font-size: 15px; pointer-events: none; transition: color 0.2s;
  }
  .input-wrap:focus-within i.prefix { color: #3b82f6; }

  .crm-input {
    width: 100%;
    background: #1e293b;
    border: 0.5px solid #334155;
    border-radius: 8px;
    padding: 11px 14px 11px 38px;
    font-size: 14px;
    color: #f1f5f9;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .crm-input::placeholder { color: #2d3f55; }
  .crm-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .crm-input.suffix-pad { padding-right: 40px; }

  .eye-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #475569; cursor: pointer; padding: 0;
    font-size: 15px; display: flex; align-items: center;
  }
  .eye-btn:hover { color: #94a3b8; }

  .options-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; margin-top: 4px;
  }

  .remember { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: #64748b; user-select: none; }
  .remember input[type=checkbox] { width: 14px; height: 14px; accent-color: #3b82f6; cursor: pointer; }

  .forgot { font-size: 13px; color: #3b82f6; background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }
  .forgot:hover { color: #60a5fa; }

  .btn-login {
    width: 100%; background: #3b82f6; color: #fff; border: none;
    border-radius: 8px; padding: 13px; font-size: 15px; font-weight: 500;
    font-family: 'DM Sans', sans-serif; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.18s, transform 0.12s;
  }
  .btn-login:hover { background: #2563eb; }
  .btn-login:active { transform: scale(0.98); }

  .divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
  .divider-line { flex: 1; height: 0.5px; background: #1e293b; }
  .divider span { font-size: 12px; color: #334155; }

  .sso-row { display: flex; gap: 10px; margin-bottom: 18px; }
  .sso-btn {
    flex: 1; background: transparent; border: 0.5px solid #334155; border-radius: 8px;
    padding: 10px; font-size: 13px; color: #64748b; font-family: 'DM Sans', sans-serif;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .sso-btn:hover { border-color: #475569; color: #94a3b8; background: rgba(255,255,255,0.02); }
  .sso-btn i { font-size: 16px; }

  .signup-link { text-align: center; font-size: 13px; color: #475569; }
  .signup-link a { color: #3b82f6; text-decoration: none; margin-left: 4px; cursor: pointer; }
  .signup-link a:hover { color: #60a5fa; }

  .error-msg { font-size: 12px; color: #f87171; margin-top: 5px; display: none; }

  .toast {
    display: none; position: absolute; top: 14px; right: 14px;
    background: #22c55e; color: #fff; font-size: 13px;
    padding: 9px 16px; border-radius: 8px; z-index: 10;
    align-items: center; gap: 6px;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes countUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
