/* Split marketing auth shell — login & signup (/account/*) */

/* Fonts loaded in login.php/signup.php <head>:
   @import "https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap" */

:root {
  --ci-auth-bg: #06060a;
  --ci-auth-panel: #e9eef7;
  --ci-auth-panel-border: rgba(148, 163, 184, 0.35);
  --ci-auth-accent: #6366f1;
  --ci-auth-accent-hover: #4f46e5;
  --ci-auth-text: #f8fafc;
  --ci-auth-muted: #94a3b8;
  --ci-auth-glow-from: #a78bfa;
  --ci-auth-glow-to: #818cf8;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading-tracking: -0.02em;
}

/* Reset heavy corporate defaults when this stylesheet loads */
.ci-auth-shell-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  background: var(--ci-auth-bg);
  color: var(--ci-auth-text);
}

/* Headings in auth shell */
.ci-auth-shell-body h1,
.ci-auth-shell-body h2,
.ci-auth-shell-body h3,
.ci-auth-shell-body .ci-auth-title {
  font-family: var(--font-heading, 'Outfit', 'Inter', sans-serif);
  font-weight: 700;
  letter-spacing: var(--font-heading-tracking, -0.02em);
}

.ci-auth-shell-body * {
  box-sizing: border-box;
}

.ci-auth-shell-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Top nav (light strip) ─── */
.ci-auth-topnav {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.ci-auth-topnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ci-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ci-auth-brand-text {
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ci-auth-navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.ci-auth-navlinks a {
  color: #475569;
  text-decoration: none;
}

.ci-auth-navlinks a:hover {
  color: #2563eb;
}

/* ─── Main split ─── */
.ci-auth-main-grid {
  flex: 1;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 2.5rem 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .ci-auth-main-grid {
    grid-template-columns: 1fr;
    padding-top: 1.75rem;
  }
  .ci-auth-hero {
    text-align: center;
  }
  .ci-auth-metrics {
    justify-content: center;
  }
}

.ci-auth-hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ci-auth-muted);
  margin: 0 0 0.85rem;
}

.ci-auth-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ci-auth-hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 38rem;
}

.ci-auth-trust {
  margin: 0 0 2rem;
  font-size: 0.86rem;
  color: var(--ci-auth-muted);
  line-height: 1.5;
  max-width: 36rem;
}

.ci-auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
}

.ci-auth-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ci-auth-metric-val {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--ci-auth-glow-from), var(--ci-auth-glow-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ci-auth-metric-label {
  font-size: 0.8rem;
  color: var(--ci-auth-muted);
  max-width: 9.5rem;
  line-height: 1.35;
}

/* ─── Form panel ─── */
.ci-auth-panel {
  background: var(--ci-auth-panel);
  border-radius: 20px;
  border: 1px solid var(--ci-auth-panel-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  padding: 1.65rem 1.5rem 1.5rem;
  color: #0f172a;
}

.ci-auth-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ci-auth-panel-intro {
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}

.ci-auth-form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 440px) {
  .ci-auth-form-row2 {
    grid-template-columns: 1fr;
  }
}

.ci-auth-field label,
.ci-auth-panel .form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.ci-auth-field input,
.ci-auth-field select,
.ci-auth-panel .form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
}

.ci-auth-panel .form-control:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  border-color: #6366f1;
}

.ci-auth-field {
  margin-bottom: 0.75rem;
}

.ci-auth-btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--ci-auth-accent);
  color: #fff;
  cursor: pointer;
}

.ci-auth-btn-primary:hover:not(:disabled) {
  background: var(--ci-auth-accent-hover);
}

.ci-auth-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ci-auth-panel-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.83rem;
  color: #475569;
}

.ci-auth-panel-footer a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.ci-auth-panel-footer a:hover {
  text-decoration: underline;
}

.ci-auth-alert {
  display: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ci-auth-alert.show {
  display: block;
}

.ci-auth-sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-auth-sso-buttons a {
  display: block;
  text-align: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  text-decoration: none;
}

.ci-auth-sso-buttons a:hover {
  border-color: #6366f1;
  color: #4338ca;
}

.ci-auth-sso-block {
  margin-bottom: 14px;
}

.ci-auth-sso-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  color: #64748b;
  font-size: 0.74rem;
}

.ci-auth-sso-sep hr {
  flex: 1;
  border: 0;
  border-top: 1px solid #cbd5e1;
  margin: 0;
}

.ci-auth-legal {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 12px;
  line-height: 1.45;
}

.ci-auth-legal a {
  color: #4f46e5;
  font-weight: 600;
}

.ci-auth-country-other-wrap {
  margin-top: -0.15rem;
  margin-bottom: 0.35rem;
}

.ci-auth-country-other-wrap[hidden] {
  display: none !important;
}

.ci-auth-country-other-wrap:not([hidden]) {
  animation: ciAuthFade 0.2s ease-out;
}

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

/* Footer */
.ci-auth-shell-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(248, 250, 252, 0.08);
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem 1.25rem 1.35rem;
}

.ci-auth-shell-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.78rem;
  color: var(--ci-auth-muted);
}

.ci-auth-shell-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.ci-auth-shell-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.ci-auth-shell-footer-links a:hover {
  color: #fff;
}

.ci-auth-dot {
  opacity: 0.45;
}

/* ── Global selection highlight ──────────────────────────── */
::selection {
  background-color: #0d8aa5;
  color: #fff;
}
::-moz-selection {
  background-color: #0d8aa5;
  color: #fff;
}

/* ── Form control text & placeholder visibility ───────────── */
.form-control,
.ci-auth-panel .form-control {
  color: #0f172a;
  background-color: #fff;
}
.form-control::placeholder,
.ci-auth-panel .form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}
input[type="password"].form-control {
  color: #0f172a;
}
