/* ── Enterprise login ── */
.cx-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 100vh;
}

/* Left panel */
.cx-panel {
  background:
    radial-gradient(ellipse 120% 80% at 0% 110%, rgba(21, 101, 168, .4) 0%, transparent 55%),
    var(--fmfp-blue-ink);
  display: flex;
  flex-direction: column;
  padding: 52px 44px 40px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.cx-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cx-panel-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  position: relative;
}

.cx-panel-logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.cx-panel-logo-name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: .01em;
}

.cx-panel-logo-name small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-top: 1px;
  font-family: Inter, sans-serif;
  letter-spacing: .06em;
}

.cx-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 48px 0;
}

.cx-panel-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cx-panel-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--fmfp-blue);
}

.cx-panel-body h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: #fff;
  margin-bottom: 16px;
}

.cx-panel-body h2 em {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #9ec1e3;
}

.cx-panel-body p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .45);
  max-width: 280px;
  margin-bottom: 0;
}

.cx-panel-footer {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.cx-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  text-decoration: none !important;
  transition: color .15s;
}

.cx-back:hover {
  color: rgba(255, 255, 255, .7);
}

.cx-back svg {
  transition: transform .15s;
}

.cx-back:hover svg {
  transform: translateX(-3px);
}

/* Right panel — form */
.cx-form-wrap {
  background: var(--fmfp-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  border-left: 1px solid var(--fmfp-rule);
}

.cx-form-inner {
  width: 100%;
  max-width: 400px;
}

/* Blue focus for enterprise */
.cx-field input:focus {
  border-color: var(--fmfp-blue);
  box-shadow: 0 0 0 3px var(--fmfp-blue-soft);
}

.cx-field input:focus+.cx-field-hint {
  color: var(--fmfp-blue);
}

.cx-submit {
  background: var(--fmfp-blue);
}

.cx-submit:hover {
  background: var(--fmfp-blue-dark);
}

.cx-form-link a {
  color: var(--fmfp-blue) !important;
}

/* ── Diamonds décoration ── */
@keyframes cx-diamond-float {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(-8px);
  }
}

.cx-diamond {
  position: absolute;
  border: 2px solid rgba(120, 180, 240, .28);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(120, 180, 240, .04);
  transform: rotate(45deg);
  pointer-events: none;
  animation: cx-diamond-float 6s ease-in-out infinite;
}

.cx-diamond img {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  object-fit: cover;
  transform: rotate(-45deg) scale(1.7);
  opacity: .55;
}

.cx-diamond-1 {
  width: 82px;
  height: 82px;
  top: 42px;
  right: -18px;
  animation-delay: 0s;
}

.cx-diamond-2 {
  width: 54px;
  height: 54px;
  top: 238px;
  left: 22px;
  animation-delay: 1.4s;
}

.cx-diamond-3 {
  width: 102px;
  height: 102px;
  top: 418px;
  right: 52px;
  animation-delay: 2.8s;
}

.cx-diamond-4 {
  width: 44px;
  height: 44px;
  top: 638px;
  left: -9px;
  animation-delay: 0.7s;
}

@media (max-width: 860px) {
  .cx-wrap {
    grid-template-columns: 1fr;
  }

  .cx-panel {
    display: none;
  }

  .cx-form-wrap {
    padding: 40px 24px;
  }
}