:root {
  --bg: #f4f7fb;
  --bg-strong: #e8eef7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-tint: #f7faff;
  --ink: #102247;
  --ink-soft: #41506e;
  --muted: #66748e;
  --line: rgba(16, 34, 71, 0.1);
  --accent: #0e2355;
  --accent-strong: #0a1738;
  --accent-soft: rgba(14, 35, 85, 0.09);
  --gold: #c79b4b;
  --gold-soft: rgba(199, 155, 75, 0.12);
  --rose: #b14f4a;
  --success: #167c66;
  --shadow: 0 24px 60px rgba(12, 23, 48, 0.08);
  --shadow-soft: 0 10px 30px rgba(12, 23, 48, 0.06);
  font-family: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #edf2f9;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 155, 75, 0.12), transparent 18%),
    radial-gradient(circle at top right, rgba(38, 82, 174, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 48%, #f7f9fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 34, 71, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 71, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 88%);
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.auth-shell,
.shell,
.applicant-shell {
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(520px, 1.12fr);
  padding: 32px 36px;
  gap: 32px;
  align-items: stretch;
}

.auth-hero,
.auth-panel,
.sidebar-panel,
.surface,
.dialog-card,
.metric-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-hero,
.auth-panel {
  padding: 34px;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(8, 24, 59, 0.96), rgba(15, 38, 88, 0.92) 56%, rgba(17, 45, 100, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  color: #f7f9ff;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-hero::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(199, 155, 75, 0.22), rgba(199, 155, 75, 0));
}

.auth-hero::after {
  width: 280px;
  height: 244px;
  bottom: -110px;
  left: -60px;
  background: radial-gradient(circle, rgba(89, 130, 235, 0.18), rgba(89, 130, 235, 0));
}

.auth-visual-frame {
  position: relative;
  min-height: 244px;
  margin-bottom: 22px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.auth-hero-image {
  width: 100%;
  height: 244px;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02) brightness(0.8);
}

.auth-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 34, 0.16), rgba(6, 14, 34, 0.68)),
    radial-gradient(circle at top right, rgba(199, 155, 75, 0.16), transparent 30%);
}

.auth-quote-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(2, 8, 24, 0.22);
}

.auth-quote-card .eyebrow,
.auth-quote {
  color: rgba(247, 249, 255, 0.96);
}

.auth-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34ch;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-lockup {
  margin-bottom: 18px;
}

.brand-logo {
  width: clamp(148px, 16vw, 220px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.brand-copy {
  display: grid;
  gap: 8px;
}

.auth-hero h1,
.sidebar h1,
.topbar h2,
.surface h3,
.dialog h3,
.auth-panel h2,
.applicant-topbar h2 {
  margin: 0;
  line-height: 1.05;
}

.auth-hero h1 {
  font-size: clamp(2.1rem, 3vw, 3.55rem);
  max-width: 11ch;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.auth-copy,
.sidebar-copy,
.panel-label,
.eyebrow,
.meta-text,
.hint {
  color: var(--muted);
}

.auth-hero .auth-copy,
.auth-hero .eyebrow,
.auth-hero .auth-subcopy {
  color: rgba(233, 240, 255, 0.78);
}

.auth-subcopy {
  margin-top: 6px;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-highlights,
.auth-stats,
.metrics,
.band,
.mix-list,
.stack-list,
.focus-list,
.table-grid,
.pipeline-board,
.login-form,
.form-grid {
  display: grid;
  gap: 14px;
}

.segmented,
.auth-topline,
.topbar,
.surface-header,
.space-between,
.dialog-header,
.dialog-actions,
.task-row,
.table-row,
.lead-card-head,
.actions,
.filters,
.applicant-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-panel {
  max-width: 720px;
  width: 100%;
  justify-self: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  border-radius: 28px;
  padding: 30px 28px;
  position: relative;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(199, 155, 75, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.segmented {
  background: #edf2f8;
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.segment,
.nav-link,
.ghost-btn,
.primary-btn,
.icon-btn,
.table-action,
select,
input,
textarea,
.stat-tile,
.first-login-panel,
.pipeline-column,
.stack-card,
.table-row,
.task-card,
.doc-card,
.lead-card,
.metric-card,
.sidebar-panel,
.surface {
  border-radius: 14px;
}

.segment {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 14px 16px;
  cursor: pointer;
  transition: 180ms ease;
  font-weight: 700;
}

.segment.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.login-form {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.login-form.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.login-form h2 {
  font-size: 1.82rem;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 90px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #eff3f9;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.first-login-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.86), rgba(255, 255, 255, 0.88));
}

.login-row,
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.checkbox-row {
  justify-content: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkbox-row input {
  width: 16px;
  height: 16px;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

.login-form label,
.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.auth-message {
  min-height: 20px;
  color: var(--rose);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 155, 75, 0.16);
  color: #fff7e7;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 14px;
}

.stat-tile {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.stat-tile strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.stat-tile span {
  color: rgba(232, 238, 252, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-ribbon span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-ribbon.compact {
  margin-bottom: 0;
}

.shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  padding: 28px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #081a3a 0%, #0c214a 100%);
  color: #f3f7ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, rgba(199, 155, 75, 0.18), transparent 24%);
  pointer-events: none;
}

.sidebar-brand-wrap {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.sidebar-logo {
  width: 100%;
  max-width: 210px;
  height: auto;
}

.sidebar h1 {
  color: #ffffff;
  font-size: 1.82rem;
}

.sidebar .eyebrow,
.sidebar-copy,
.panel-label {
  color: rgba(228, 236, 251, 0.72);
}

.nav {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.nav-link {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(243, 247, 255, 0.86);
  cursor: pointer;
  transition: 180ms ease;
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sidebar-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.main,
.applicant-shell {
  padding: 28px;
}

.main {
  background: transparent;
}

.topbar,
.surface-header,
.space-between,
.dialog-header,
.dialog-actions,
.applicant-topbar {
  justify-content: space-between;
}

.actions,
.filters {
  flex-wrap: wrap;
}

.topbar,
.applicant-topbar {
  margin-bottom: 24px;
}

.topbar h2,
.applicant-topbar h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
}

.topbar,
.applicant-topbar,
.surface,
.dialog-card,
.metric-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.topbar,
.applicant-topbar {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.ghost-btn,
.primary-btn,
.icon-btn,
.table-action {
  border: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ghost-btn:hover,
.primary-btn:hover,
.icon-btn:hover,
.table-action:hover,
.segment:hover,
.nav-link:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  padding: 12px 16px;
  background: #f2f5fa;
  color: var(--ink);
  font-weight: 700;
}

.primary-btn {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #153273 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(14, 35, 85, 0.18);
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: #eef3f9;
  color: var(--ink);
  font-size: 1rem;
}

.table-action {
  padding: 10px 12px;
  background: rgba(177, 79, 74, 0.1);
  color: var(--rose);
  font-weight: 700;
}

.user-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.metrics,
.band {
  gap: 14px;
  margin-bottom: 18px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.applicant-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface,
.dialog-card,
.metric-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 255, 0.9));
}

.metric-card {
  padding: 22px;
}

.metric-value {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 10px 0 4px;
  color: var(--accent-strong);
}

.mix-row {
  display: grid;
  gap: 8px;
}

.mix-bar {
  height: 12px;
  border-radius: 999px;
  background: #e9eef6;
  overflow: hidden;
}

.mix-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #3f66c0 55%, var(--gold) 100%);
}

.stack-card,
.table-row,
.task-card,
.doc-card,
.lead-card,
.pipeline-column {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.candidate-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.candidate-btn strong {
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent);
}

.pill.warn {
  background: var(--gold-soft);
  color: #9b6f22;
}

.pill.danger {
  background: rgba(177, 79, 74, 0.12);
  color: var(--rose);
}

.table-row {
  grid-template-columns: minmax(180px, 1.3fr) repeat(5, minmax(0, 1fr)) 120px;
  display: grid;
  align-items: center;
  gap: 12px;
}

.table-row.header {
  background: transparent;
  border: none;
  padding-inline: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.pipeline-board {
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  align-items: start;
}

.pipeline-column h4 {
  margin: 0 0 14px;
  color: var(--accent-strong);
}

.lead-card,
.task-card,
.doc-card {
  display: grid;
  gap: 10px;
}

.lead-card p,
.task-card p,
.doc-card p,
.stack-card p {
  margin: 0;
}

.lead-card small,
.stack-card small,
.task-card small,
.doc-card small,
.hint {
  line-height: 1.55;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(9, 19, 43, 0.38);
  backdrop-filter: blur(10px);
}

.dialog-card {
  width: min(860px, calc(100vw - 24px));
}

.case-detail-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.compact-grid {
  margin: 0;
}

.full-span {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7e1ef;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(21, 50, 115, 0.42);
  box-shadow: 0 0 0 4px rgba(21, 50, 115, 0.08);
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-meta,
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.check-item {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff4fb;
  font-size: 0.8rem;
}

.check-item.done {
  background: rgba(22, 124, 102, 0.12);
  color: var(--success);
}

.upload-btn {
  position: relative;
  overflow: hidden;
}

.upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.suggestion-list {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .auth-shell,
  .shell,
  .metrics,
  .applicant-metrics,
  .two-column,
  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-panel {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .auth-shell,
  .main,
  .applicant-shell {
    padding: 16px;
  }

  .auth-hero,
  .auth-panel,
  .sidebar,
  .surface,
  .dialog-card,
  .metric-card {
    padding: 20px;
  }

  .brand-lockup,
  .login-row,
  .auth-inline-actions,
  .topbar,
  .applicant-topbar,
  .actions,
  .filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-stats {
    grid-template-columns: 1fr;
  }

  .auth-visual-frame,
  .auth-hero-image {
    min-height: 220px;
    height: 220px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-row.header {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* Logo blend refinement */
.brand-logo,
.auth-panel-logo,
.sidebar-logo {
  mix-blend-mode: multiply;
}

.brand-logo,
.auth-panel-logo {
  background: radial-gradient(circle at center, rgba(244, 247, 251, 0.96), rgba(244, 247, 251, 0.68) 72%, rgba(244, 247, 251, 0) 100%);
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(12, 23, 48, 0.05);
}

.sidebar-logo {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.9) 74%, rgba(248, 250, 255, 0.18) 100%);
  border-radius: 18px;
  padding: 10px 12px;
}

.auth-panel-brand,
.auth-brand-lockup,
.sidebar-brand {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(248, 250, 255, 0.16));
  border: 1px solid rgba(16, 34, 71, 0.06);
}

/* Homepage balance refresh */
.auth-shell {
  grid-template-columns: minmax(300px, 0.68fr) minmax(680px, 1.32fr);
  align-items: stretch;
}

.auth-hero {
  padding: 24px;
  justify-content: flex-start;
  gap: 18px;
}

.auth-hero h1 {
  font-size: clamp(1.9rem, 2.5vw, 2.8rem);
  max-width: 11ch;
  margin-bottom: 0;
}

.auth-subcopy {
  max-width: 38ch;
  margin-top: 0;
}

.auth-panel {
  max-width: 800px;
  padding: 18px 28px 30px;
}

.auth-panel-brand {
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 18px;
}

.auth-panel-logo {
  width: min(100%, 540px);
  max-width: 540px;
  height: auto;
  object-fit: contain;
}

.auth-info-surface {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.auth-info-primary {
  margin-top: 4px;
}

.info-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.info-heading-row h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
}

.auth-info-list {
  display: grid;
  gap: 10px;
}

.info-item {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-item strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.info-item span {
  color: rgba(233, 240, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-stats-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.stat-tile.compact {
  min-height: 100%;
  padding: 14px 15px;
}

.stat-tile.compact strong {
  font-size: 0.96rem;
}

.stat-tile.compact span {
  font-size: 0.86rem;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .auth-stats-inline {
    grid-template-columns: 1fr;
  }

  .auth-panel-logo {
    width: min(100%, 420px);
  }
}

/* Rotating homepage showcase */
.auth-shell {
  grid-template-columns: minmax(360px, 1fr) 720px;
  justify-content: center;
  align-items: center;
}

.auth-hero {
  min-height: 720px;
  padding: 24px;
  justify-content: space-between;
  gap: 22px;
}

.auth-hero-stage {
  display: grid;
}

.auth-visual-frame-showcase {
  min-height: 520px;
  height: 520px;
  margin-bottom: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.auth-hero-image {
  height: 520px;
}

.auth-showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  z-index: 1;
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(8, 24, 59, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.showcase-country {
  background: rgba(199, 155, 75, 0.2);
  color: #fff6df;
}

.auth-quote-card-showcase {
  left: auto;
  right: auto;
  bottom: auto;
  position: relative;
  max-width: 420px;
  margin-top: auto;
}

.auth-hero-copy {
  display: grid;
  gap: 12px;
}

.auth-hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  max-width: 11ch;
}

.auth-subcopy {
  max-width: 42ch;
}

.auth-panel {
  width: 720px;
  min-width: 720px;
  max-width: 720px;
  align-self: center;
  padding: 18px 28px 30px;
}

.auth-panel-brand {
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 18px;
}

.auth-panel-logo {
  width: min(100%, 520px);
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .auth-visual-frame-showcase,
  .auth-hero-image {
    min-height: 360px;
    height: 360px;
  }

  .auth-quote-card-showcase {
    max-width: 100%;
  }

  .auth-panel-logo {
    width: min(100%, 400px);
  }
}

/* Single-pane homepage */
.auth-shell {
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
}

.auth-hero-hidden {
  display: none !important;
}

.auth-panel {
  width: min(760px, calc(100vw - 40px));
  min-width: 320px;
  max-width: 760px;
  justify-self: center;
  align-self: center;
  padding: 24px 30px 34px;
}

.auth-panel-brand {
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  background: transparent;
  border: none;
}

.auth-panel-logo {
  width: min(100%, 480px);
  max-width: 480px;
  height: auto;
  object-fit: contain;
}

.auth-panel-intro {
  display: grid;
  gap: 10px;
  text-align: center;
  margin: 0 auto 18px;
  max-width: 34rem;
}

.auth-panel-intro .eyebrow {
  color: var(--muted);
}

.auth-panel-intro h1 {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.segmented {
  margin-bottom: 22px;
}

.login-form {
  gap: 18px;
}

@media (max-width: 820px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-panel {
    width: min(100%, calc(100vw - 24px));
    min-width: 0;
    padding: 20px 20px 28px;
  }

  .auth-panel-logo {
    width: min(100%, 360px);
  }
}

/* Full-page blended logo treatment */
.auth-shell {
  position: relative;
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
  align-items: center;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 251, 255, 0.72));
}

.auth-panel-brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-panel-logo {
  width: min(92vw, 980px);
  max-width: none;
  height: auto;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0.11;
  mix-blend-mode: multiply;
  filter: saturate(0.9) contrast(1.02);
}

.auth-panel-intro,
.segmented,
.login-form,
#authMessage {
  position: relative;
  z-index: 1;
}

.auth-panel-intro {
  max-width: 36rem;
  margin: 0 auto 22px;
}

.auth-panel-intro h1 {
  text-wrap: balance;
}

@media (max-width: 820px) {
  .auth-panel {
    min-height: calc(100vh - 24px);
  }

  .auth-panel-logo {
    width: min(120vw, 760px);
    opacity: 0.09;
  }
}

/* Restore visible top logo without card treatment */
.auth-panel {
  overflow: visible;
  min-height: auto;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.84));
}

.auth-panel-brand {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 1;
}

.auth-panel-logo {
  width: min(100%, 460px);
  max-width: 460px;
  height: auto;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 1;
  mix-blend-mode: multiply;
  filter: none;
}

.auth-panel-intro,
.segmented,
.login-form,
#authMessage {
  z-index: 1;
}

.auth-panel-intro {
  margin: 0 auto 18px;
}

@media (max-width: 820px) {
  .auth-panel-logo {
    width: min(100%, 340px);
    max-width: 340px;
  }
}
