@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --cm-ink: #0b1220;
  --cm-ink-soft: #1e293b;
  --cm-muted: #64748b;
  --cm-faint: #94a3b8;
  --cm-line: #e6e8ee;
  --cm-canvas: #f4f5f8;
  --cm-surface: #ffffff;
  --cm-accent: #4f46e5;
  --cm-accent-hover: #4338ca;
  --cm-accent-soft: #eef2ff;
  --cm-success: #059669;
  --cm-danger: #dc2626;
  --cm-radius: 14px;
  --cm-radius-sm: 10px;
  --cm-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cm-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

html.connectmedia-public,
html.connectmedia-public body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  background: var(--cm-canvas) !important;
  color: var(--cm-ink);
  font-family: var(--cm-font) !important;
  -webkit-font-smoothing: antialiased;
}

html.connectmedia-public #wpadminbar,
html.connectmedia-public .fusion-tb-header,
html.connectmedia-public .fusion-header-wrapper,
html.connectmedia-public header.fusion-header,
html.connectmedia-public footer.fusion-footer,
html.connectmedia-public .fusion-footer-widget-area,
html.connectmedia-public #wrapper > header,
html.connectmedia-public .avada-page-titlebar-wrapper,
html.connectmedia-public .skip-link {
  display: none !important;
}

html.connectmedia-public.admin-bar {
  margin-top: 0 !important;
}

html.connectmedia-public .fusion-page-title-bar,
html.connectmedia-public .fusion-footer-widget-area,
html.connectmedia-public .fusion-copyright-notice,
html.connectmedia-public footer.fusion-footer {
  display: none !important;
}

.cm-auth-shell {
  position: relative;
  z-index: 30;
}

.cm-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(380px, 1fr);
}

.cm-auth-brand {
  position: relative;
  overflow: hidden;
  color: #e2e8f0;
  background:
    radial-gradient(1200px 500px at -10% -10%, rgba(99, 102, 241, 0.45), transparent 55%),
    radial-gradient(800px 400px at 110% 20%, rgba(14, 165, 233, 0.22), transparent 50%),
    linear-gradient(165deg, #070b14 0%, #111827 55%, #0b1220 100%);
  padding: 32px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cm-auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  pointer-events: none;
}

.cm-auth-brand > * {
  position: relative;
  z-index: 1;
}

.cm-auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cm-auth-brand-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.cm-auth-brand-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cm-auth-brand-nav a {
  color: rgba(226, 232, 240, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cm-auth-brand-nav a:hover,
.cm-auth-brand-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cm-auth-brand-copy {
  max-width: 520px;
  padding: 48px 0 32px;
}

.cm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.22);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cm-auth-brand-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 700;
}

.cm-auth-brand-copy p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 42ch;
}

.cm-auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cm-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.cm-auth-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.18);
  flex-shrink: 0;
}

.cm-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cm-auth-stat {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-auth-stat strong {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cm-auth-stat span {
  color: #94a3b8;
  font-size: 12px;
}

.cm-auth-panel {
  display: flex;
  flex-direction: column;
  background: var(--cm-canvas);
  min-height: 100vh;
}

.cm-auth-panel-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 32px 0;
}

.cm-auth-panel-bar span {
  color: var(--cm-muted);
  font-size: 14px;
}

.cm-auth-panel-bar a {
  color: var(--cm-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.cm-auth-panel-bar a:hover {
  color: var(--cm-accent-hover);
}

.cm-auth-panel-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px 48px;
}

.cm-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--cm-surface);
  border: 1px solid var(--cm-line);
  border-radius: 20px;
  box-shadow: var(--cm-shadow);
  padding: 36px 36px 32px;
}

.cm-auth-card.is-wide {
  max-width: 560px;
}

.cm-auth-kicker {
  margin: 0 0 8px;
  color: var(--cm-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cm-auth-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cm-ink);
  font-weight: 700;
  text-align: left !important;
}

.cm-auth-lede {
  margin: 0 0 28px;
  color: var(--cm-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: left !important;
}

.cm-auth-lede {
  margin: 0 0 28px;
  color: var(--cm-muted);
  font-size: 15px;
  line-height: 1.5;
}

.cm-error-notice,
.cm-success-notice {
  border-radius: var(--cm-radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.cm-error-notice {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cm-success-notice {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cm-form-group {
  margin-bottom: 16px;
}

.cm-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cm-ink-soft);
}

.cm-form-control,
input.cm-form-control {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius-sm);
  background: #fff;
  color: var(--cm-ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-form-control:focus {
  outline: none;
  border-color: var(--cm-accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.cm-description {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--cm-muted);
}

.password-toggle {
  position: relative;
}

.password-toggle .cm-form-control {
  padding-right: 44px;
}

.password-toggle .toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--cm-muted);
  cursor: pointer;
  border-radius: 8px;
}

.password-toggle .toggle-password:hover,
.password-toggle .toggle-password:focus {
  color: var(--cm-accent);
  outline: none;
}

.cm-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 14px;
  color: var(--cm-ink-soft);
}

.cm-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--cm-accent);
}

.cm-form-submit,
input.cm-form-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--cm-radius-sm);
  background: var(--cm-accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cm-form-submit:hover {
  background: var(--cm-accent-hover);
}

.cm-form-submit:active {
  transform: translateY(1px);
}

.cm-form-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cm-form-links a {
  color: var(--cm-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.cm-form-links a:hover {
  text-decoration: underline;
}

.g-recaptcha {
  margin: 4px 0 16px;
  transform-origin: left top;
}

.cm-auth-footnote {
  margin: 24px 0 0;
  text-align: center;
  color: var(--cm-faint);
  font-size: 12px;
}

.cm-menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  .cm-auth-shell {
    grid-template-columns: 1fr;
  }

  .cm-auth-brand {
    min-height: auto;
    padding: 20px 20px 28px;
  }

  .cm-auth-brand-copy {
    padding: 24px 0 16px;
  }

  .cm-auth-brand-copy h1 {
    font-size: 30px;
  }

  .cm-auth-stats {
    display: none;
  }

  .cm-auth-panel,
  .cm-auth-panel-inner {
    min-height: auto;
  }

  .cm-auth-panel-inner {
    padding: 16px 16px 40px;
    align-items: flex-start;
  }

  .cm-auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cm-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cm-auth-panel-bar {
    padding: 16px 20px 0;
  }

  .cm-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
  }

  .cm-auth-brand-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 12px;
  }

  .cm-auth-brand-nav.is-open,
  .cm-auth-brand-nav.show {
    display: flex;
  }

  .cm-auth-brand-top {
    flex-wrap: wrap;
  }
}
