:root {
  --bg: #f4f7fb;
  --bg-soft: #f9fbff;
  --panel: rgba(255,255,255,.94);
  --panel-solid: #ffffff;
  --line: #d9e1ee;
  --text: #1f2940;
  --muted: #667389;
  --navy: #1c2d57;
  --green-dark: #1d4b3d;
  --green-deep: #183d32;
  --green-soft: #ecf7f1;
  --green-line: #cfe5d8;
  --orange: #ea7f1b;
  --orange-2: #f39a3d;
  --shadow: 0 18px 38px rgba(28,45,87,.10);
  --shadow-strong: 0 24px 48px rgba(15,27,55,.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(234,127,27,.10), transparent 25%),
    radial-gradient(circle at 0% 20%, rgba(29,75,61,.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell { min-height: 100vh; padding: 20px; }
.site-main { max-width: 1160px; margin: 0 auto; }

.site-header {
  max-width: 1160px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header-home,
.site-header-auth {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.site-header-auth-dark .brand-text strong,
.site-header-auth-dark .brand-text small,
.site-header-auth-dark .btn-ghost {
  color: #eff8f3;
}
.site-header-auth-dark .btn-ghost { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.site-header-auth-dark .brand-mark {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}

.brand { display:flex; align-items:center; gap: 14px; }
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--navy), #29416f);
  color:#fff;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: 0 12px 30px rgba(28,45,87,.20);
}
.brand-text { display:flex; flex-direction:column; gap: 2px; }
.brand-text strong { font-size: 15px; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 12px; }

.header-actions { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.header-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d4dff5;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(234,127,27,.26);
}
.btn-secondary {
  background: rgba(255,255,255,.92);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: rgba(255,255,255,.86);
  color: var(--navy);
  border-color: rgba(28,45,87,.08);
  box-shadow: var(--shadow);
}
.btn-block { width: 100%; }
.btn-xl { min-height: 56px; padding: 16px 24px; font-size: 16px; border-radius: 18px; }
.btn-auth { min-height: 58px; font-size: 17px; border-radius: 18px; }

.panel-label {
  display:inline-flex;
  padding: 9px 13px;
  border-radius:999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.panel-label-green {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-line);
}

.eyebrow-home {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#fff3e5;
  border:1px solid #ffd9b0;
  color:#b75f09;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.hero-home { padding: 10px 0 26px; }
.hero-grid-clean {
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
  align-items: stretch;
}
.hero-card-main,
.hero-card-side,
.hero-side-block,
.metric-box-clean,
.auth-panel {
  background: var(--panel);
  border: 1px solid rgba(28,45,87,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-card-main {
  padding: 38px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(234,127,27,.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(29,75,61,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.hero-card-main::after {
  content:"";
  position:absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -120px;
  background: linear-gradient(135deg, rgba(234,127,27,.18), rgba(29,75,61,.16));
  border-radius: 50%;
  filter: blur(8px);
}
.hero-card-main h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--navy);
  max-width: 13ch;
  position: relative;
  z-index: 1;
}
.lead-home {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.hero-actions-home { margin: 28px 0 24px; }
.hero-list-clean {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style:none;
  position: relative;
  z-index: 1;
}
.hero-list-clean li {
  border-radius: 18px;
  padding: 15px 16px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid #e4eaf4;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}
.hero-footnote {
  margin: 18px 0 0;
  color: #7b869b;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.hero-card-side {
  padding: 22px;
  display:grid;
  gap: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}
.hero-side-block {
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #f7fcf9 100%);
}
.check-list { list-style:none; margin: 0; padding: 0; display:grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  line-height: 1.55;
}
.check-list li::before {
  content:"✓";
  position:absolute;
  left: 0;
  top: 0;
  width: 20px;
  height:20px;
  border-radius:999px;
  background:#e8f5ec;
  color: var(--green-dark);
  display:grid;
  place-items:center;
  font-weight:800;
  font-size: 12px;
}
.hero-side-metrics { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-box-clean {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
}
.metric-box-clean strong { display:block; font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.metric-box-clean span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.auth-hero {
  min-height: calc(100vh - 108px);
  display: grid;
  place-items: center;
  padding: 12px 0 24px;
}
.auth-hero-login {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 52%, #315e51 100%);
  border-radius: 34px;
  padding: 34px 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.auth-hero-signup {
  padding-top: 8px;
}
.auth-panel {
  width: min(100%, 760px);
  padding: 28px;
}
.auth-panel-login {
  width: min(100%, 390px);
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-strong);
}
.auth-panel-signup {
  background: rgba(255,255,255,.94);
}
.auth-brand-lockup { text-align: center; }
.auth-logo { max-width: 285px; margin: 0 auto 12px; }
.auth-brand-lockup h1,
.auth-panel-top h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--navy);
}
.auth-brand-lockup h1 { font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.auth-brand-lockup p,
.form-sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}
.mini-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e6ebf5;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.alert-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4e8;
  border: 1px solid #ffd9b0;
  color: #8f4e06;
  font-size: 14px;
}
.auth-form { display:grid; gap: 14px; }
.auth-form label { display:grid; gap: 8px; }
.auth-form label span {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.auth-form input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-size: 15px;
  color: var(--text);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form input:focus {
  border-color: #8ab99f;
  box-shadow: 0 0 0 4px rgba(29,75,61,.10);
}
.auth-form-signup {
  grid-template-columns: 1fr 1fr;
}
.field-span-2 { grid-column: 1 / -1; }
.auth-links { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.auth-links-center { justify-content: center; text-align: center; }
.auth-links-soft a,
.auth-links-muted a,
.auth-links-muted span { color: var(--muted); font-size: 14px; }
.auth-links-soft a:hover,
.auth-links-muted a:hover { color: var(--navy); }
.auth-footer-note {
  margin-top: 18px;
  display:grid;
  gap: 4px;
  color: #8a95aa;
  font-size: 12px;
}
.auth-footer-note-center { text-align: center; }

code { background: #eef3fb; color: var(--navy); border-radius: 8px; padding: 2px 7px; font-family: Consolas, monospace; font-size: 90%; }

@media (max-width: 980px) {
  .hero-grid-clean,
  .hero-side-metrics,
  .auth-form-signup { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
}

@media (max-width: 780px) {
  .site-shell { padding: 12px; }
  .site-header { margin-bottom: 14px; }
  .hero-card-main,
  .hero-card-side,
  .hero-side-block,
  .metric-box-clean,
  .auth-panel { padding: 22px; border-radius: 22px; }
  .hero-card-main h1 { font-size: 34px; max-width: none; }
  .lead-home { font-size: 16px; }
  .hero-list-clean { grid-template-columns: 1fr; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .auth-hero { min-height: auto; }
  .auth-hero-login { border-radius: 26px; padding: 18px 10px; }
  .auth-panel-login { width: 100%; }
}

.alert-box-success{background:rgba(22,101,52,.18);border:1px solid rgba(34,197,94,.4);color:#dcfce7;}
