/* CRM Pro — login / register (RGB + 3D splash) */
:root {
  --ap-bg: #05080f;
  --ap-text: #f1f5f9;
  --ap-muted: #94a3b8;
  --ap-line: rgba(148, 163, 184, 0.14);
  --ap-card: rgba(12, 18, 32, 0.82);
}

body.auth-pro-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ap-text);
  background: var(--ap-bg) !important;
  overflow-x: hidden;
}

/* hide old auth layout leftovers */
body.auth-pro-body .auth-wrap,
body.auth-pro-body .main-container {
  padding: 0 !important;
  min-height: 0 !important;
  display: block !important;
}
body.auth-pro-body .auth-wrap > .container,
body.auth-pro-body .auth-wrap > div {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

@keyframes rgbShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes spinHue {
  to { --spin: 360deg; }
}
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float3d1 {
  0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translateZ(20px) translateY(0); }
  50% { transform: rotateY(10deg) rotateX(12deg) translateZ(30px) translateY(-10px); }
}
@keyframes float3d2 {
  0%, 100% { transform: rotateY(22deg) rotateX(14deg) translateZ(-30px) translateY(8px); }
  50% { transform: rotateY(8deg) rotateX(10deg) translateZ(-10px) translateY(-6px); }
}
@keyframes float3d3 {
  0%, 100% { transform: rotateY(-28deg) rotateX(16deg) translateZ(-50px); }
  50% { transform: rotateY(-12deg) rotateX(10deg) translateZ(-30px) translateY(8px); }
}
@keyframes heroFloat {
  0%, 100% { transform: rotateY(-18deg) rotateX(10deg) rotateZ(-2deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(12deg) rotateZ(0deg) translateY(-12px); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes gridMove { to { background-position: 40px 40px; } }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes rise {
  0% { transform: translateY(100%) scale(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ===== SPLASH ===== */
#crm-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.65s ease, visibility 0.65s, filter 0.65s;
}
#crm-splash.hide {
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  pointer-events: none;
}
.crm-splash-bg {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from var(--spin, 0deg),
    #ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899, #ef4444
  );
  animation: spinHue 10s linear infinite;
  filter: blur(60px) saturate(1.4);
  opacity: 0.55;
}
.crm-splash-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 0%, #05080f 72%);
}
.crm-splash-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(420px, 92vw);
}
.crm-splash-stage {
  perspective: 900px;
  height: 200px;
  margin: 0 auto 1.5rem;
  position: relative;
  width: min(340px, 88vw);
}
.crm-float-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 150px;
  margin: -75px 0 0 -120px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(59, 130, 246, 0.25);
  overflow: hidden;
  transform-style: preserve-3d;
}
.crm-float-card.c1 {
  animation: float3d1 5s ease-in-out infinite;
  z-index: 3;
}
.crm-float-card.c1::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(
    from var(--spin, 0deg),
    #ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899, #ef4444
  );
  z-index: -1;
  animation: spinHue 3s linear infinite;
  filter: blur(1px);
}
.crm-float-card.c2 {
  width: 200px;
  height: 128px;
  margin: -90px 0 0 -40px;
  opacity: 0.75;
  z-index: 2;
  animation: float3d2 6s ease-in-out infinite;
}
.crm-float-card.c3 {
  width: 180px;
  height: 110px;
  margin: -40px 0 0 -160px;
  opacity: 0.55;
  z-index: 1;
  animation: float3d3 7s ease-in-out infinite;
}
.crm-ui-top {
  height: 22px;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.crm-ui-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  display: block;
}
.crm-ui-top i:nth-child(1) { background: #ef4444; }
.crm-ui-top i:nth-child(2) { background: #f59e0b; }
.crm-ui-top i:nth-child(3) { background: #22c55e; }
.crm-ui-body { display: flex; height: calc(100% - 22px); }
.crm-ui-side {
  width: 36px;
  background: #0b1220;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crm-ui-side span {
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.2);
}
.crm-ui-side span:first-child {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  height: 8px;
}
.crm-ui-main {
  flex: 1;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.crm-ui-tile {
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.crm-ui-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shine 2.8s ease-in-out infinite;
}
.crm-ui-tile.g1 { background: linear-gradient(135deg, #1e3a5f, #1e293b); }
.crm-ui-tile.g2 { background: linear-gradient(135deg, #14532d, #1e293b); }
.crm-ui-tile.g3 { background: linear-gradient(135deg, #4c1d95, #1e293b); }
.crm-ui-tile.g4 { background: linear-gradient(135deg, #7f1d1d, #1e293b); }

.crm-splash-brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.crm-splash-brand span {
  background: linear-gradient(90deg, #60a5fa, #c084fc, #34d399, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rgbShift 3s linear infinite;
}
.crm-splash-status {
  margin-top: 0.5rem;
  color: var(--ap-muted);
  font-size: 0.95rem;
  min-height: 1.4em;
}
.crm-splash-status strong { color: #e2e8f0; }
.crm-progress {
  margin: 1.4rem auto 0;
  width: min(280px, 80vw);
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.crm-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7);
  background-size: 200% 100%;
  animation: rgbShift 1.5s linear infinite;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}
.crm-progress-meta {
  margin: 0.65rem auto 0;
  width: min(280px, 80vw);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ap-muted);
  font-variant-numeric: tabular-nums;
}

/* ===== AUTH PAGE ===== */
.crm-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.crm-auth-page.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 960px) {
  .crm-auth-page { grid-template-columns: 1fr; }
  .crm-brand-side { min-height: 320px; padding: 1.5rem !important; }
  .crm-hero-stage { height: 190px !important; }
}

.crm-brand-side {
  position: relative;
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--ap-line);
  background: #070b14;
}
.crm-brand-aurora {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg at 40% 40%,
    rgba(239, 68, 68, 0.35),
    rgba(245, 158, 11, 0.3),
    rgba(34, 197, 94, 0.28),
    rgba(6, 182, 212, 0.3),
    rgba(59, 130, 246, 0.4),
    rgba(168, 85, 247, 0.35),
    rgba(236, 72, 153, 0.3),
    rgba(239, 68, 68, 0.35)
  );
  animation: spinSlow 18s linear infinite;
  filter: blur(50px);
  opacity: 0.55;
}
.crm-brand-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 40% 40%, transparent 0%, rgba(5, 8, 15, 0.75) 70%),
    linear-gradient(180deg, transparent 40%, rgba(5, 8, 15, 0.9) 100%);
  pointer-events: none;
}
.crm-brand-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.crm-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(145deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 200%;
  animation: rgbShift 4s linear infinite;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.5);
}
.crm-brand-name { font-weight: 800; font-size: 1.2rem; }
.crm-brand-name span {
  background: linear-gradient(90deg, #60a5fa, #c084fc, #34d399, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rgbShift 3s linear infinite;
}

.crm-hero-stage {
  position: relative;
  z-index: 2;
  height: 280px;
  perspective: 1000px;
  margin: 1.5rem 0;
}
.crm-hero-mock {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  height: 220px;
  border-radius: 18px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotateY(-18deg) rotateX(10deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  animation: heroFloat 6s ease-in-out infinite;
}
.crm-hero-mock::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  z-index: -1;
  background: conic-gradient(
    from var(--spin, 0deg),
    #ff0040, #ff8c00, #ffee00, #00ff6a, #00cfff, #2b5cff, #b14cff, #ff0040
  );
  animation: spinHue 4s linear infinite;
  filter: blur(2px);
  opacity: 0.9;
}
.crm-hero-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  background-size: 220% 100%;
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}
.crm-hm-top {
  height: 32px;
  background: linear-gradient(90deg, #151f32, #0f172a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.crm-hm-top b {
  margin-left: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}
.crm-hm-top b em { color: #60a5fa; font-style: normal; }
.crm-hm-body { display: flex; height: calc(100% - 32px); }
.crm-hm-nav {
  width: 52px;
  background: #0a101c;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-hm-nav span {
  height: 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
}
.crm-hm-nav span.on {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.crm-hm-content {
  flex: 1;
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), transparent), #0c1424;
}
.crm-hm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.crm-hm-stat {
  border-radius: 8px;
  padding: 8px 6px;
  background: #152033;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.crm-hm-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #3b82f6, #a855f7);
}
.crm-hm-stat:nth-child(2)::before { background: linear-gradient(180deg, #22c55e, #06b6d4); }
.crm-hm-stat:nth-child(3)::before { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.crm-hm-stat:nth-child(4)::before { background: linear-gradient(180deg, #a855f7, #ec4899); }
.crm-hm-stat .l { font-size: 0.55rem; color: #64748b; text-transform: uppercase; }
.crm-hm-stat .n {
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 2px;
  background: linear-gradient(90deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.crm-hm-chart {
  border-radius: 10px;
  background: #111c2e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.crm-hm-chart svg { width: 100%; height: 100%; display: block; }
.crm-hm-chart .line {
  fill: none;
  stroke-width: 2;
  stroke: url(#crmRgbStroke);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 3s ease forwards infinite alternate;
}
.crm-hm-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.crm-hm-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #60a5fa;
  opacity: 0.6;
  animation: rise 4s linear infinite;
}

.crm-brand-copy { position: relative; z-index: 2; }
.crm-brand-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 14ch;
}
.crm-brand-copy p {
  margin-top: 0.65rem;
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36ch;
}
.crm-brand-foot {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Form side */
.crm-form-side {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(500px 280px at 80% 15%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(400px 240px at 20% 90%, rgba(168, 85, 247, 0.1), transparent 50%),
    #05080f;
  position: relative;
}
.crm-form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}
.crm-form-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 1.7rem 1.55rem 1.3rem;
  background: var(--ap-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.crm-form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  z-index: -1;
  background: conic-gradient(
    from var(--spin, 0deg),
    transparent 0%,
    #3b82f6 10%,
    transparent 20%,
    #a855f7 40%,
    transparent 50%,
    #22c55e 70%,
    transparent 80%,
    #ef4444 95%,
    transparent 100%
  );
  animation: spinHue 6s linear infinite;
  opacity: 0.55;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.crm-form-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}
.crm-form-card .sub {
  color: var(--ap-muted);
  font-size: 0.88rem;
  margin: 0.3rem 0 1.15rem;
  line-height: 1.45;
}
.crm-form-card label {
  display: block;
  font-size: 0.76rem;
  color: var(--ap-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.crm-form-card .field,
.crm-form-card .form-group {
  margin-bottom: 0.9rem;
}
.crm-form-card .input-wrap { position: relative; }
.crm-form-card input[type="text"],
.crm-form-card input[type="password"],
.crm-form-card .form-control,
.crm-form-card input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) {
  width: 100% !important;
  background: rgba(8, 12, 22, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 0.75rem 0.85rem !important;
  font: inherit !important;
  font-size: 0.94rem !important;
  outline: none !important;
  box-shadow: none !important;
}
.crm-form-card input:focus {
  border-color: rgba(96, 165, 250, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 0 20px rgba(59, 130, 246, 0.15) !important;
}
.crm-form-card .input-wrap input { padding-right: 2.4rem !important; }
.crm-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ap-muted);
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
}
.crm-eye:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.crm-btn-main {
  width: 100%;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  color: #fff !important;
  background: linear-gradient(105deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  background-size: 250% 100%;
  animation: rgbShift 4s linear infinite;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none !important;
  transition: filter 0.15s, transform 0.1s;
}
.crm-btn-main:hover { filter: brightness(1.08); color: #fff !important; }
.crm-btn-main:active { transform: scale(0.98); }
.crm-btn-main:disabled { opacity: 0.8; cursor: wait; }
.crm-spin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 0.65s linear infinite;
  display: none;
}
.crm-btn-main.loading .crm-spin { display: block; }

.crm-btn-ghost {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ap-text) !important;
  border-radius: 12px;
  padding: 0.78rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  display: block;
}
.crm-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff !important; }

.crm-auth-foot {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ap-muted);
  line-height: 1.45;
}
.crm-auth-foot a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}
.crm-auth-foot a:hover { text-decoration: underline; }

.crm-closed-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
}
.crm-closed-box .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}
.crm-closed-box b {
  color: #fecaca;
  display: block;
  margin-bottom: 0.2rem;
}

.crm-alert-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fecaca;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.crm-alert-err small { color: #fca5a5; opacity: 0.9; }

/* role/team picks on dark auth */
.crm-form-card .role-pick,
.crm-form-card .team-pick {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.crm-form-card .pick-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(8, 12, 22, 0.6);
  margin: 0;
  color: #e2e8f0;
}
.crm-form-card .pick-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(30, 41, 59, 0.8);
}
.crm-form-card .pick-card:has(input:checked) {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px #3b82f6;
}
.crm-form-card .pick-card-body strong { font-size: 0.95rem; color: #f1f5f9; }
.crm-form-card .pick-card-body small { font-size: 0.78rem; color: #94a3b8; }
.crm-form-card .team-card .pick-card-body {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
.crm-form-card .team-emoji { font-size: 1.35rem; }
.crm-form-card .errorlist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  color: #fca5a5;
  font-size: 0.8rem;
}

/* ===== CONNECT overlay (после «Войти») — ДРУГОЙ визуал, не как splash ===== */
#crm-connect {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(16, 185, 129, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(6, 182, 212, 0.15), transparent 50%),
    #04120e;
}
#crm-connect.show { display: grid; }
.crm-connect-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(52, 211, 153, 0.15);
  border-top-color: #34d399;
  border-right-color: #22d3ee;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.25);
  position: relative;
}
.crm-connect-ring::after {
  content: "◆";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #6ee7b7;
  animation: spin 1.6s linear infinite reverse;
}
.crm-connect-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ecfdf5;
}
.crm-connect-title span {
  background: linear-gradient(90deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.crm-connect-sub {
  text-align: center;
  margin-top: 0.5rem;
  color: #6ee7b7;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.crm-connect-steps {
  margin: 1.25rem auto 0;
  width: min(260px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
.crm-connect-steps .on { color: #6ee7b7; font-weight: 600; }
.crm-connect-steps .done { color: #34d399; opacity: 0.85; }
