:root {
  --p: #2563eb;
  --pd: #1d4ed8;
  --pdk: #1e3a8a;
  --acc: #10b981;
  --accd: #059669;
  --danger: #ef4444;
  --warn: #f59e0b;
  --indigo: #6366f1;
  --teal: #14b8a6;
  --rose: #f43f5e;
  --violet: #8b5cf6;
  --sky: #0ea5e9;
  --amber: #f59e0b;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --borderb: #cbd5e1;
  --heading: "Manrope", sans-serif;
  --body: "Inter", sans-serif;
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, .14);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, .12);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(14,165,233,.16), transparent 31%),
    radial-gradient(circle at 92% 5%, rgba(139,92,246,.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; }
img, svg { display: block; }

.auth-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  overflow: hidden;
  isolation: isolate;
}

.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 94%);
}

.brand-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.7vh, 42px) clamp(34px, 5vw, 78px) clamp(22px, 3vh, 34px);
  border-right: 1px solid rgba(203,213,225,.85);
  background:
    radial-gradient(circle at 18% 12%, rgba(14,165,233,.15), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(139,92,246,.12), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.92));
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}
.brand-panel::before {
  width: min(43vw, 610px);
  height: min(43vw, 610px);
  right: -20%;
  top: -25%;
  background: radial-gradient(circle, rgba(99,102,241,.14), transparent 67%);
}
.brand-panel::after {
  width: min(34vw, 470px);
  height: min(34vw, 470px);
  left: -17%;
  bottom: -30%;
  background: radial-gradient(circle, rgba(20,184,166,.10), transparent 70%);
}

.brand-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.brand-top,
.brand-content,
.brand-footer { position: relative; z-index: 2; }
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand-logo { width: auto; height: 38px; max-width: 225px; object-fit: contain; }

.platform-pill,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 999px;
  color: var(--pdk);
  background: linear-gradient(90deg, rgba(219,234,254,.82), rgba(237,233,254,.78));
  box-shadow: 0 8px 24px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.9);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.platform-pill { padding: 8px 12px; white-space: nowrap; }
.hero-badge { width: fit-content; margin-bottom: 17px; padding: 7px 12px; }

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(16,185,129,.10), 0 0 14px rgba(16,185,129,.38);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(16,185,129,.38);
  border-radius: 50%;
  animation: pulse-ring 1.8s ease-out infinite;
}

.brand-content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, .88fr) minmax(335px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 4vw, 68px);
  padding: 22px 0 14px;
}
.brand-copy { max-width: 590px; }
.brand-title {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 4.65vw, 5rem);
  line-height: .99;
  letter-spacing: -.06em;
  font-weight: 800;
  color: var(--text);
}
.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, var(--pdk) 0%, var(--p) 28%, var(--indigo) 66%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.brand-description {
  max-width: 550px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(.82rem, 1vw, .96rem);
  line-height: 1.75;
}
.proof-row { display: flex; flex-wrap: wrap; gap: 10px 15px; margin-top: 23px; }
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
  font-size: .7rem;
  font-weight: 700;
}
.proof-item svg { color: var(--accd); }

.visual-wrap { position: relative; min-width: 0; perspective: 1300px; }
.visual-halo {
  position: absolute;
  inset: 6% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.18), rgba(99,102,241,.10) 43%, transparent 70%);
  filter: blur(20px);
  animation: halo 5s ease-in-out infinite;
}
.dashboard-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(44vh, 420px);
  min-height: 290px;
  padding: 12px;
  border: 1px solid rgba(203,213,225,.95);
  border-radius: 25px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  transform: rotateY(-4deg) rotateX(2deg);
  animation: panel-float 6s ease-in-out infinite;
}
.dashboard-window {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 #fff;
}
.window-top {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.95);
}
.window-brand { display: flex; align-items: center; gap: 9px; font-family: var(--heading); color: var(--text); font-size: .67rem; font-weight: 800; }
.window-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--p), var(--indigo) 55%, var(--violet)); box-shadow: 0 8px 18px rgba(37,99,235,.24); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--borderb); }
.window-dots i:first-child { background: var(--acc); }
.window-body { height: calc(100% - 47px); display: grid; grid-template-columns: 52px 1fr; }
.window-sidebar { padding: 13px 10px; border-right: 1px solid var(--border); background: #f1f5f9; }
.side-icon { height: 28px; margin-bottom: 8px; border-radius: 8px; background: #e2e8f0; }
.side-icon.active { background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(139,92,246,.14)); border: 1px solid rgba(99,102,241,.18); }
.window-main { min-width: 0; padding: 14px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dashboard-heading strong { font-family: var(--heading); color: var(--text); font-size: .72rem; }
.new-search { padding: 6px 9px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--p), var(--indigo)); box-shadow: 0 6px 14px rgba(37,99,235,.18); font-size: .52rem; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.metric-card { padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.04); }
.metric-card small { display: block; color: var(--muted); font-size: .48rem; }
.metric-card b { display: block; margin-top: 4px; color: var(--text); font-family: var(--heading); font-size: .86rem; }
.lead-table { margin-top: 11px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.lead-row { display: grid; grid-template-columns: 1.2fr .9fr .7fr; gap: 8px; align-items: center; min-height: 32px; padding: 0 9px; border-bottom: 1px solid #edf2f7; color: var(--text2); font-size: .49rem; }
.lead-row:last-child { border-bottom: 0; }
.lead-row.head { color: var(--muted); background: #f8fafc; text-transform: uppercase; letter-spacing: .05em; }
.verified { width: fit-content; padding: 4px 6px; border: 1px solid rgba(16,185,129,.18); border-radius: 999px; color: var(--accd); background: rgba(16,185,129,.09); font-weight: 800; }
.float-card {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(203,213,225,.95);
  border-radius: 13px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  animation: small-float 4s ease-in-out infinite;
}
.float-card.one { right: -22px; top: 23%; }
.float-card.two { left: -24px; bottom: 11%; animation-delay: -2s; }
.float-label { color: var(--muted); font-size: .5rem; }
.float-value { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text); font-size: .62rem; font-weight: 800; }
.float-value span { color: var(--accd); }

.brand-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .62rem; }
.brand-footer div { display: flex; gap: 15px; }

.form-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 52px);
  background:
    radial-gradient(circle at 90% 10%, rgba(139,92,246,.10), transparent 29%),
    radial-gradient(circle at 7% 92%, rgba(14,165,233,.10), transparent 28%),
    linear-gradient(160deg, #eef5ff, #f8fafc 50%, #f1f5f9);
}
.form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.form-card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: clamp(28px, 4vh, 40px);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-xl), 0 2px 10px rgba(15,23,42,.04), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(37,99,235,.28), transparent 32%, rgba(139,92,246,.20), rgba(20,184,166,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.mobile-logo { display: none; margin-bottom: 22px; }
.mobile-logo img { height: 35px; width: auto; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 28px; color: var(--muted); font-size: .7rem; font-weight: 700; transition: color .2s ease, transform .2s ease; }
.back-link:hover { color: var(--p); transform: translateX(-3px); }
.form-eyebrow { color: var(--indigo); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-title { margin-top: 8px; font-family: var(--heading); color: var(--text); font-size: clamp(1.85rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.045em; }
.form-sub { margin: 9px 0 24px; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.form-sub a, .switch-text a, .forgot { color: var(--p); font-weight: 800; }
.form-sub a:hover, .switch-text a:hover, .forgot:hover { color: var(--pd); }

.auth-error { display: none; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(239,68,68,.20); border-radius: 11px; color: #b91c1c; background: #fff1f2; font-size: .7rem; line-height: 1.45; }
.auth-error.show { display: block; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 7px; color: var(--text2); font-size: .68rem; font-weight: 800; }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%;
  height: 49px;
  padding: 0 43px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  outline: 0;
  color: var(--text);
  background: #f8fafc;
  font-size: .78rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.input-wrap input::placeholder { color: #94a3b8; }
.input-wrap input:hover { border-color: var(--borderb); background: #fff; }
.input-wrap input:focus { border-color: var(--p); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.10), 0 12px 30px rgba(37,99,235,.08); }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.input-wrap:focus-within .input-icon { color: var(--p); }
.password-toggle { position: absolute; right: 9px; top: 50%; width: 33px; height: 33px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 9px; color: #94a3b8; background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease; }
.password-toggle:hover { color: var(--p); background: #eff6ff; }

.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 17px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; cursor: pointer; }
.remember input { width: 15px; height: 15px; accent-color: var(--p); }
.forgot { font-size: .67rem; }

.submit-btn {
  position: relative;
  width: 100%;
  height: 50px;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--p), var(--indigo) 56%, var(--violet));
  box-shadow: 0 14px 35px rgba(37,99,235,.26), inset 0 1px 0 rgba(255,255,255,.30);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.submit-btn::before { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transition: transform .65s ease; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.35); }
.submit-btn:hover::before { transform: translateX(120%); }
.submit-btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }

.security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; color: var(--muted); font-size: .61rem; }
.security svg { color: var(--accd); }
.switch-text { margin-top: 16px; text-align: center; color: var(--muted); font-size: .69rem; }
.password-note { display: block; margin-top: 5px; color: var(--muted); font-size: .59rem; }

@keyframes pulse-ring { 0% { transform: scale(.65); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes halo { 50% { transform: scale(1.05); opacity: .78; } }
@keyframes panel-float { 50% { transform: rotateY(-2deg) rotateX(1deg) translateY(-6px); } }
@keyframes small-float { 50% { transform: translateY(-7px); } }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, .86fr); }
  .brand-content { grid-template-columns: .84fr 1.16fr; gap: 26px; }
  .brand-title { font-size: clamp(2.35rem, 4.1vw, 3.9rem); }
  .dashboard-card { height: min(39vh, 340px); }
  .float-card.one { right: -10px; }
  .float-card.two { left: -10px; }
}

@media (max-height: 790px) and (min-width: 901px) {
  .brand-panel { padding-top: 22px; padding-bottom: 20px; }
  .brand-logo { height: 34px; }
  .brand-content { gap: 22px; padding: 12px 0 8px; }
  .hero-badge { margin-bottom: 10px; }
  .brand-title { font-size: clamp(2.1rem, 3.6vw, 3.35rem); }
  .brand-description { margin-top: 12px; line-height: 1.55; }
  .proof-row { margin-top: 14px; }
  .dashboard-card { height: 255px; min-height: 0; }
  .form-card { padding: 27px 32px; }
  .back-link { margin-bottom: 19px; }
  .form-sub { margin-bottom: 19px; }
  .field { margin-bottom: 11px; }
  .input-wrap input { height: 45px; }
  .submit-btn { height: 47px; }
  .security, .switch-text { margin-top: 12px; }
}

@media (max-height: 650px) and (min-width: 901px) {
  .platform-pill, .brand-description, .proof-row, .brand-footer, .form-eyebrow, .security { display: none; }
  .brand-content { padding: 6px 0; }
  .dashboard-card { height: 210px; }
  .back-link { margin-bottom: 13px; }
  .form-title { font-size: 1.7rem; }
  .form-sub { margin: 6px 0 13px; }
  .field { margin-bottom: 8px; }
  .field label { margin-bottom: 4px; }
  .input-wrap input { height: 41px; }
  .form-options { margin-bottom: 10px; }
  .submit-btn { height: 43px; }
  .switch-text { margin-top: 8px; }
}

@media (max-width: 900px) {
  .auth-shell { display: block; }
  .brand-panel { display: none; }
  .form-panel { width: 100%; height: 100vh; height: 100svh; padding: 18px; overflow: hidden; }
  .form-card { width: min(460px, 100%); max-height: calc(100svh - 36px); padding: 31px; }
  .mobile-logo { display: block; }
  .back-link { position: absolute; top: 34px; right: 31px; margin: 0; }
  .back-link span { display: none; }
}

@media (max-width: 520px) {
  .form-panel { padding: 10px; }
  .form-card { max-height: calc(100svh - 20px); padding: 24px 20px; border-radius: 22px; }
  .mobile-logo { margin-bottom: 20px; }
  .mobile-logo img { height: 32px; }
  .back-link { top: 26px; right: 21px; }
  .form-title { font-size: 1.75rem; }
  .form-sub { margin: 7px 0 19px; }
  .field { margin-bottom: 11px; }
  .input-wrap input { height: 46px; }
  .form-options { margin-bottom: 13px; }
  .submit-btn { height: 48px; }
  .security, .switch-text { margin-top: 12px; }
}

@media (max-height: 630px) and (max-width: 900px) {
  .form-card { padding: 18px 20px; }
  .mobile-logo { margin-bottom: 9px; }
  .mobile-logo img { height: 28px; }
  .back-link { top: 19px; }
  .form-eyebrow, .security { display: none; }
  .form-title { font-size: 1.48rem; }
  .form-sub { margin: 5px 0 11px; }
  .field { margin-bottom: 7px; }
  .field label { margin-bottom: 3px; }
  .input-wrap input { height: 40px; }
  .form-options { margin: 0 0 8px; }
  .submit-btn { height: 42px; }
  .switch-text { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
