*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-900: #2D1B69;
  --purple-800: #3A2281;
  --purple-700: #4A2D9A;
  --purple-600: #5B37B7;
  --purple-500: #6C3FC5;
  --purple-400: #8B6CD6;
  --purple-300: #A78FE2;
  --purple-200: #C9B8F0;
  --purple-100: #E8E0F7;
  --purple-50: #F5F0FF;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #7A7A9A;
  --white: #FFFFFF;
  --off-white: #FAFAFE;
  --green-500: #27AE60;
  --green-100: #E6F9ED;
  --amber-500: #F39C12;
  --red-500: #E74C3C;
  --border: #E5E5EE;
  --shadow-sm: 0 1px 3px rgba(44,27,105,0.06);
  --shadow-md: 0 4px 16px rgba(44,27,105,0.08);
  --shadow-lg: 0 8px 32px rgba(44,27,105,0.12);
  --shadow-xl: 0 16px 48px rgba(44,27,105,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108,63,197,0.08);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { width: 34px; height: auto; flex-shrink: 0; }
.logo-text {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.35rem;
  color: var(--purple-700); letter-spacing: -0.02em;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.btn-text {
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  padding: 8px 16px; border-radius: var(--radius-sm); transition: all 0.2s ease;
}
.btn-text:hover { color: var(--purple-600); background: var(--purple-50); }
.btn-primary-sm {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600; color: var(--white);
  background: var(--purple-600); padding: 9px 22px;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary-sm:hover { background: var(--purple-700); }

/* ─── MAIN LAYOUT ─── */
.page-wrapper {
  flex: 1;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
}

/* ─── LEFT PANEL ─── */
.left-panel {
  background: linear-gradient(160deg, var(--purple-900) 0%, var(--purple-700) 50%, var(--purple-600) 100%);
  position: relative; overflow: hidden;
  padding: 64px 52px;
  display: flex; flex-direction: column; 
}
.left-panel::before {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,143,226,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.left-panel::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,63,197,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.left-content { position: relative; z-index: 1; }

.left-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px; animation: fadeInUp 0.5s ease both;
}
.left-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34D399;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.left-panel h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 14px; line-height: 1.15;
  animation: fadeInUp 0.5s ease 0.1s both;
}
.left-panel h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #C9B8F0, #A78FE2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.left-desc {
  font-size: 0.97rem; color: rgba(255,255,255,0.7); line-height: 1.7;
  margin-bottom: 34px; max-width: 420px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.value-props { display: flex; flex-direction: column; gap: 11px; margin-bottom: 36px; animation: fadeInUp 0.5s ease 0.3s both; }
.value-prop {
  display: flex; align-items: flex-start; gap: 13px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 14px 16px;
  transition: background 0.2s ease;
}
.value-prop:hover { background: rgba(255,255,255,0.1); }
.value-prop-icon {
  width: 33px; height: 33px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.value-prop-icon svg { width: 16px; height: 16px; color: #C9B8F0; }
.value-prop-text strong { display: block; font-size: 0.87rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.value-prop-text span { font-size: 0.79rem; color: rgba(255,255,255,0.56); line-height: 1.45; }

.social-proof {
  display: flex; align-items: center; gap: 14px;
  animation: fadeInUp 0.5s ease 0.4s both;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 31px; height: 31px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.65rem;
  color: var(--white); margin-left: -8px;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-stars { display: flex; gap: 2px; margin-bottom: 2px; }
.proof-stars svg { width: 12px; height: 12px; color: var(--amber-500); }
.proof-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--white); }
.proof-text span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ─── RIGHT PANEL ─── */
.right-panel {
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px; overflow-y: auto;
}
.form-container { width: 100%; max-width: 450px; animation: fadeInUp 0.5s ease 0.1s both; }

.form-header { margin-bottom: 22px; }
.trial-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-100); border: 1px solid rgba(39,174,96,0.25);
  padding: 6px 13px; border-radius: 100px;
  font-size: 0.77rem; font-weight: 600; color: #1a7a3f; margin-bottom: 16px;
}
.trial-pill svg { width: 13px; height: 13px; }
.form-header h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 4px; }
.form-header p { font-size: 0.88rem; color: var(--text-secondary); }
.form-header p a { color: var(--purple-600); font-weight: 600; }
.form-header p a:hover { text-decoration: underline; }

/* Form card */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 30px 26px; box-shadow: var(--shadow-lg);
}

.form-row { margin-bottom: 13px; }
.form-row label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 5px;
}
.form-row label .required { color: var(--purple-500); margin-left: 2px; }
.form-row input, .form-row select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  color: var(--text-primary); background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none; -webkit-appearance: none;
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; cursor: pointer;
}
.form-row input:focus, .form-row select:focus {
  outline: none; border-color: var(--purple-400); box-shadow: 0 0 0 3px rgba(108,63,197,0.1);
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row.has-error input, .form-row.has-error select { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(231,76,60,0.07); }
.form-row.is-valid input { border-color: var(--green-500); }
.error-msg { font-size: 0.73rem; color: var(--red-500); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.error-msg svg { width: 11px; height: 11px; flex-shrink: 0; }

.input-icon-wrap { position: relative; }
.input-icon-wrap svg.field-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-muted); pointer-events: none;
}
.input-icon-wrap input { padding-left: 34px; }

.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--purple-600); }
.pw-toggle svg { width: 14px; height: 14px; display: block; }

.pw-strength { margin-top: 6px; }
.pw-strength-bar { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; margin-bottom: 4px; }
.pw-strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s ease, background-color 0.3s ease; width: 0%; }
.pw-strength-label { font-size: 0.72rem; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* Terms */
.form-terms { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.form-terms input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; accent-color: var(--purple-600); cursor: pointer; }
.form-terms label { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.form-terms label a { color: var(--purple-600); font-weight: 500; }
.form-terms label a:hover { text-decoration: underline; }

/* Submit */
.btn-submit {
  width: 100%; padding: 13px;
  font-family: 'DM Sans', sans-serif; font-size: 0.96rem; font-weight: 600;
  color: var(--white); background: var(--purple-600);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-submit::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s ease;
}
.btn-submit:hover { background: var(--purple-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-submit:hover::before { left: 100%; }
.btn-submit svg { width: 16px; height: 16px; }

/* OR divider */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.or-divider span { font-size: 0.77rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

/* SSO buttons */
.sso-buttons { display: flex; flex-direction: column; gap: 9px; }
.btn-sso {
  width: 100%; padding: 10px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 0.86rem; font-weight: 600;
  color: var(--text-primary); background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-sso:hover { border-color: var(--purple-300); background: var(--purple-50); }
.btn-sso svg { flex-shrink: 0; }

/* After-form elements */
.signin-link { text-align: center; margin-top: 16px; font-size: 0.83rem; color: var(--text-muted); }
.signin-link a { color: var(--purple-600); font-weight: 600; }
.signin-link a:hover { text-decoration: underline; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.trust-item { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }
.trust-item svg { width: 13px; height: 13px; color: var(--green-500); }

.capterra-strip {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 12px; font-size: 0.76rem; color: var(--text-muted);
}
.capterra-stars { display: flex; gap: 1px; }
.capterra-stars svg { width: 11px; height: 11px; color: var(--amber-500); }
.capterra-strip a { color: var(--purple-600); font-weight: 600; }
.capterra-strip a:hover { text-decoration: underline; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── FOOTER - matches landing page exactly ─── */
.footer { padding: 48px 0 32px; background: var(--purple-900); color: rgba(255,255,255,0.7); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 28px; height: auto; opacity: 0.9; }
.footer-logo-text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: rgba(255,255,255,0.9); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8rem; text-align: center;
  padding: 24px 24px 0; margin: 24px auto 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px; width: 100%;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .left-panel { padding: 52px 28px 44px; }
  .right-panel { padding: 40px 20px; }
}
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 16px; }
  .header-inner { padding: 0 16px; }
  .btn-text { display: none; }
  .footer-links { gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}