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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

/* Shared auth surfaces aligned with the public landing visual. */
body.auth-login-page,
body.auth-register-page {
  --auth-bg: #f5f7fb;
  --auth-bg-soft: #eef2f7;
  --auth-surface: #ffffff;
  --auth-surface-strong: #f8f9fd;
  --auth-text: #1e293b;
  --auth-text-strong: #0f172a;
  --auth-muted: #64748b;
  --auth-muted-strong: #475569;
  --auth-line: #e1e7ef;
  --auth-line-strong: #c9d4e2;
  --auth-primary: #3b82f6;
  --auth-primary-hover: #2563eb;
  --auth-primary-dark: #1d4ed8;
  --auth-primary-bg: rgba(59, 130, 246, 0.1);
  --auth-agenda-soft: #eaf4ff;
  --auth-agenda-strong: #1769d2;
  --auth-success: #10b981;
  --auth-success-bg: rgba(16, 185, 129, 0.1);
  --auth-warning: #f59e0b;
  --auth-warning-bg: rgba(245, 158, 11, 0.12);
  --auth-danger: #ef4444;
  --auth-danger-bg: rgba(239, 68, 68, 0.1);
  --auth-shadow: 0 24px 54px rgba(43, 48, 58, 0.11);
  --auth-shadow-soft: 0 10px 26px rgba(43, 48, 58, 0.07);
  --bg: var(--auth-bg);
  --surface: var(--auth-surface);
  --surface-hover: var(--auth-surface-strong);
  --panel: var(--auth-surface);
  --text: var(--auth-text);
  --text-secondary: var(--auth-muted-strong);
  --muted: var(--auth-muted);
  --border: var(--auth-line);
  --border-strong: var(--auth-line-strong);
  --input-bg: var(--auth-surface);
  --input-border: var(--auth-line);
  --input-focus: var(--auth-primary);
  --primary: var(--auth-primary);
  --primary-hover: var(--auth-primary-hover);
  --primary-bg: var(--auth-primary-bg);
  --success: var(--auth-success);
  --success-bg: var(--auth-success-bg);
  --danger: var(--auth-danger);
  --danger-bg: var(--auth-danger-bg);
  --shadow-sm: 0 1px 2px rgba(43, 48, 58, 0.05);
  --shadow-lg: var(--auth-shadow);
  min-height: 100dvh;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--auth-text) !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.09), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.06), transparent 24rem),
    linear-gradient(180deg, var(--auth-bg-soft), transparent 460px),
    var(--auth-bg) !important;
  overflow-x: hidden;
}

body.auth-login-page::before,
body.auth-register-page::before {
  display: none !important;
}

body.auth-login-page *,
body.auth-register-page * {
  letter-spacing: 0;
}

body.auth-login-page .topbar,
body.auth-register-page .topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(225, 231, 239, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

body.auth-login-page .topbar-inner,
body.auth-register-page .topbar-inner {
  width: 100%;
  max-width: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px 11px 22px !important;
}

body.auth-login-page .auth-brand,
body.auth-register-page .auth-brand {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  color: var(--auth-text-strong) !important;
  text-decoration: none;
}

body.auth-login-page .auth-brand img,
body.auth-register-page .auth-brand img {
  display: block !important;
  width: auto;
  height: clamp(32px, 3vw, 38px);
  max-width: 178px;
}

body.auth-login-page .auth-nav,
body.auth-register-page .auth-nav,
body.auth-login-page .auth-topbar-actions,
body.auth-register-page .auth-topbar-actions {
  display: flex;
  align-items: center;
}

body.auth-login-page .auth-nav,
body.auth-register-page .auth-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 2px;
}

body.auth-login-page .auth-nav a,
body.auth-register-page .auth-nav a,
body.auth-login-page .auth-topbar-link,
body.auth-register-page .auth-topbar-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--auth-muted-strong) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.auth-login-page .auth-nav a:hover,
body.auth-login-page .auth-nav a:focus-visible,
body.auth-register-page .auth-nav a:hover,
body.auth-register-page .auth-nav a:focus-visible,
body.auth-login-page .auth-topbar-link:hover,
body.auth-login-page .auth-topbar-link:focus-visible,
body.auth-register-page .auth-topbar-link:hover,
body.auth-register-page .auth-topbar-link:focus-visible {
  color: var(--auth-primary-dark) !important;
  background: var(--auth-primary-bg);
  outline: none;
}

body.auth-login-page .auth-topbar-actions,
body.auth-register-page .auth-topbar-actions {
  flex: 0 0 auto;
  gap: 6px;
}

body.auth-login-page .auth-topbar-cta,
body.auth-register-page .auth-topbar-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--auth-primary);
  border-radius: 999px;
  background: var(--auth-primary);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.16);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

body.auth-login-page .auth-topbar-cta:hover,
body.auth-login-page .auth-topbar-cta:focus-visible,
body.auth-register-page .auth-topbar-cta:hover,
body.auth-register-page .auth-topbar-cta:focus-visible {
  transform: translateY(-2px);
  border-color: var(--auth-primary-hover);
  background: var(--auth-primary-hover);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  outline: none;
}

body.auth-login-page .auth-shell,
body.auth-register-page .auth-shell {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px !important;
  min-height: calc(100dvh - 84px);
  position: relative;
  margin-inline: auto;
  display: grid;
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  padding: 54px 0 64px !important;
}

body.auth-login-page .auth-shell {
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 450px) !important;
}

body.auth-register-page .auth-shell {
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 560px) !important;
  align-items: start;
}

body.auth-login-page .auth-shell::before,
body.auth-register-page .auth-shell::before {
  display: none !important;
}

body.auth-login-page .auth-intro,
body.auth-register-page .auth-intro {
  position: relative;
  max-width: 660px !important;
}

body.auth-login-page .auth-intro::after,
body.auth-register-page .auth-intro::after {
  content: "";
  position: absolute;
  right: clamp(-28px, -4vw, -12px);
  bottom: -34px;
  width: min(220px, 34vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.38), transparent);
  pointer-events: none;
}

body.auth-login-page .auth-kicker,
body.auth-register-page .auth-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px !important;
  padding: 6px 11px !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 999px !important;
  background: var(--auth-agenda-soft) !important;
  color: var(--auth-agenda-strong) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
}

body.auth-login-page .auth-intro h1,
body.auth-register-page .auth-intro h1 {
  max-width: 680px;
  margin: 0 0 20px !important;
  color: var(--auth-text-strong) !important;
  font-size: clamp(40px, 5.7vw, 70px) !important;
  font-weight: 500 !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}

body.auth-register-page .auth-intro h1 {
  font-size: clamp(36px, 4.9vw, 58px) !important;
  line-height: 1.02 !important;
}

body.auth-login-page .auth-intro p,
body.auth-register-page .auth-intro p {
  max-width: 590px;
  color: var(--auth-muted) !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  text-wrap: pretty;
}

body.auth-login-page .auth-feature-list,
body.auth-register-page .auth-feature-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
  margin: 28px 0 0 !important;
  padding: 0;
  list-style: none;
}

body.auth-login-page .auth-feature-list li,
body.auth-register-page .auth-feature-list li {
  flex: 0 1 auto;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: var(--auth-muted-strong) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

body.auth-login-page .auth-feature-list li::before,
body.auth-register-page .auth-feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--auth-primary) !important;
  box-shadow: none !important;
}

body.auth-login-page .auth-proof-panel,
body.auth-register-page .auth-proof-panel {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(201, 212, 226, 0.78);
  border-radius: 18px;
  background: rgba(201, 212, 226, 0.72);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

body.auth-login-page .auth-proof-panel div,
body.auth-register-page .auth-proof-panel div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
}

body.auth-login-page .auth-proof-panel span,
body.auth-register-page .auth-proof-panel span {
  color: var(--auth-primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

body.auth-login-page .auth-proof-panel strong,
body.auth-register-page .auth-proof-panel strong {
  color: var(--auth-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.28;
}

body.auth-login-page .auth-wrapper,
body.auth-register-page .auth-wrapper {
  width: 100%;
  position: relative;
  margin: 0 !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--auth-shadow) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

body.auth-login-page .auth-wrapper {
  max-width: 450px !important;
  padding: 32px !important;
}

body.auth-register-page .auth-wrapper {
  max-width: 560px !important;
  padding: 34px !important;
}

body.auth-login-page .auth-wrapper::before,
body.auth-register-page .auth-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--auth-primary);
}

body.auth-login-page .auth-title,
body.auth-register-page .auth-title,
body.auth-login-page label,
body.auth-register-page label,
body.auth-register-page .section-title {
  color: var(--auth-text) !important;
  font-weight: 500 !important;
}

body.auth-login-page .auth-title,
body.auth-register-page .auth-title {
  margin: 0 0 8px !important;
  font-size: 28px !important;
  line-height: 1.12;
}

body.auth-login-page .auth-subtitle,
body.auth-register-page .auth-subtitle,
body.auth-login-page .auth-footer,
body.auth-register-page .auth-footer {
  color: var(--auth-muted) !important;
}

body.auth-login-page .input,
body.auth-register-page input.input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--auth-line) !important;
  border-radius: 10px !important;
  background: var(--auth-surface) !important;
  color: var(--auth-text) !important;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

body.auth-login-page .input::placeholder,
body.auth-register-page input.input::placeholder {
  color: #94a3b8 !important;
}

body.auth-login-page .input:focus,
body.auth-register-page input.input:focus {
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 3px var(--auth-primary-bg) !important;
  outline: none;
}

body.auth-login-page .btn,
body.auth-register-page .btn {
  min-height: 46px !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.auth-login-page .btn.primary,
body.auth-login-page .btn:not(.secondary):not(.ghost):not(.danger),
body.auth-register-page .btn.primary,
body.auth-register-page .btn:not(.secondary):not(.ghost):not(.danger) {
  border: 1px solid var(--auth-primary) !important;
  background: var(--auth-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.16) !important;
}

body.auth-login-page .btn.primary:hover,
body.auth-login-page .btn:not(.secondary):not(.ghost):not(.danger):hover,
body.auth-register-page .btn.primary:hover,
body.auth-register-page .btn:not(.secondary):not(.ghost):not(.danger):hover {
  transform: translateY(-2px);
  border-color: var(--auth-primary-hover) !important;
  background: var(--auth-primary-hover) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22) !important;
}

body.auth-login-page .btn.secondary,
body.auth-register-page .btn.secondary {
  border: 1px solid var(--auth-line-strong) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--auth-text) !important;
  box-shadow: none !important;
}

body.auth-login-page .btn.secondary:hover,
body.auth-register-page .btn.secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.38) !important;
  background: var(--auth-surface-strong) !important;
  color: var(--auth-primary-dark) !important;
}

body.auth-login-page .forgot-link,
body.auth-register-page .links a:not(.btn),
body.auth-login-page .links a:not(.btn) {
  color: var(--auth-primary) !important;
}

body.auth-login-page .links,
body.auth-register-page .links,
body.auth-register-page .form-section {
  border-color: var(--auth-line) !important;
}

body.auth-register-page .section-step {
  background: var(--auth-primary-bg) !important;
  color: var(--auth-primary-dark) !important;
  box-shadow: none !important;
}

body.auth-register-page .pw-reqs {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--auth-line) !important;
  border-radius: 10px;
  background: var(--auth-surface-strong) !important;
}

body.auth-register-page .pw-strength {
  margin-top: 10px;
}

body.auth-register-page .pw-strength-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

body.auth-register-page .pw-strength-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--auth-danger);
  transition: width 220ms ease, background 220ms ease;
}

body.auth-register-page .pw-strength-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--auth-muted);
  font-size: 13px;
}

body.auth-register-page .pw-strength-label {
  color: var(--auth-muted-strong);
  font-weight: 500;
}

body.auth-register-page .pw-strength[data-level="1"] .pw-strength-bar {
  width: 20%;
  background: var(--auth-danger);
}

body.auth-register-page .pw-strength[data-level="2"] .pw-strength-bar {
  width: 40%;
  background: var(--auth-warning);
}

body.auth-register-page .pw-strength[data-level="3"] .pw-strength-bar {
  width: 60%;
  background: #2f80ed;
}

body.auth-register-page .pw-strength[data-level="4"] .pw-strength-bar {
  width: 80%;
  background: var(--auth-primary);
}

body.auth-register-page .pw-strength[data-level="5"] .pw-strength-bar {
  width: 100%;
  background: var(--auth-success);
}

body.auth-register-page .pw-reqs-title {
  color: var(--auth-text) !important;
  font-weight: 500;
}

body.auth-register-page .pw-req {
  color: var(--auth-muted) !important;
}

body.auth-register-page .pw-req.valid {
  color: var(--auth-success) !important;
}

body.auth-register-page .pw-req.valid .req-dot {
  background: var(--auth-success) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14) !important;
}

body.auth-register-page .pw-match.match,
body.auth-register-page .alert-success {
  background: var(--auth-success-bg) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.24) !important;
}

body.auth-register-page .pw-match.mismatch,
body.auth-register-page .alert-error,
body.auth-login-page .error {
  background: var(--auth-danger-bg) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.24) !important;
}

@media (prefers-reduced-motion: no-preference) {
  body.auth-login-page .auth-intro,
  body.auth-register-page .auth-intro,
  body.auth-login-page .auth-wrapper,
  body.auth-register-page .auth-wrapper {
    animation: authRise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  body.auth-login-page .auth-wrapper,
  body.auth-register-page .auth-wrapper {
    animation-delay: 90ms;
  }
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  body.auth-login-page .topbar,
  body.auth-register-page .topbar,
  body.auth-login-page .auth-shell,
  body.auth-register-page .auth-shell {
    width: min(100% - 32px, 1180px);
  }

  body.auth-login-page .auth-shell,
  body.auth-register-page .auth-shell {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 34px 0 52px !important;
  }

  body.auth-register-page .auth-wrapper,
  body.auth-login-page .auth-wrapper {
    max-width: 100% !important;
  }

  body.auth-login-page .topbar,
  body.auth-register-page .topbar {
    top: 10px;
  }

  body.auth-login-page .topbar-inner,
  body.auth-register-page .topbar-inner {
    gap: 12px;
  }

  body.auth-login-page .auth-nav,
  body.auth-register-page .auth-nav {
    display: none;
  }

  body.auth-login-page .auth-proof-panel,
  body.auth-register-page .auth-proof-panel {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  body.auth-login-page .topbar,
  body.auth-register-page .topbar {
    width: min(100% - 20px, 1180px);
    min-height: 0;
    margin-top: 10px;
    border-radius: 22px;
  }

  body.auth-login-page .topbar-inner,
  body.auth-register-page .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px !important;
  }

  body.auth-login-page .auth-brand,
  body.auth-register-page .auth-brand {
    width: 100%;
    justify-content: center;
  }

  body.auth-login-page .auth-brand img,
  body.auth-register-page .auth-brand img {
    height: 34px;
    max-width: 168px;
  }

  body.auth-login-page .auth-topbar-actions,
  body.auth-register-page .auth-topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.auth-login-page .auth-topbar-link,
  body.auth-register-page .auth-topbar-link,
  body.auth-login-page .auth-topbar-cta,
  body.auth-register-page .auth-topbar-cta {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 14px;
  }

  body.auth-login-page .auth-shell,
  body.auth-register-page .auth-shell {
    min-height: auto;
    width: min(100% - 20px, 1180px);
    padding-top: 28px !important;
  }

  body.auth-login-page .auth-intro h1,
  body.auth-register-page .auth-intro h1 {
    font-size: 39px !important;
  }

  body.auth-register-page .auth-wrapper,
  body.auth-login-page .auth-wrapper {
    padding: 22px !important;
    border-radius: 16px !important;
  }

  body.auth-login-page .auth-feature-list,
  body.auth-register-page .auth-feature-list {
    gap: 8px !important;
  }

  body.auth-login-page .auth-feature-list li,
  body.auth-register-page .auth-feature-list li {
    width: 100%;
  }

  body.auth-login-page .auth-proof-panel,
  body.auth-register-page .auth-proof-panel {
    grid-template-columns: 1fr;
    margin-top: 22px;
    border-radius: 16px;
  }

  body.auth-login-page .auth-proof-panel div,
  body.auth-register-page .auth-proof-panel div {
    min-height: auto;
    gap: 8px;
    padding: 15px 16px;
  }

  body.auth-register-page form .row,
  body.auth-login-page form .row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
