/* Bright Block Tech — visual design system
   Spec accents: indigo #6366F1, cyan #22D3EE. Retune via :root. */

:root {
  --ink: #0b0b12;
  --ink-soft: #17172a;
  --bg: #f4f4f7;
  --bg-elevated: #fbfbfd;
  --surface: #ffffff;
  --text: #0b0b12;
  --text-muted: #3f3f52;
  --text-soft: #6b6b7b;
  --accent: #4f46e5;
  --accent-bright: #6366f1;
  --accent-hover: #4338ca;
  --accent-2: #0891b2;
  --accent-2-bright: #22d3ee;
  --accent-soft: #eef2ff;
  --gradient: linear-gradient(120deg, #6366f1 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.08));
  --border: #e4e4ec;
  --border-strong: #d0d0dc;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 0 rgba(11, 11, 18, 0.04);
  --shadow-md: 0 18px 40px rgba(11, 11, 18, 0.07);
  --max-width: 1160px;
  --header-h: 4.5rem;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --focus: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: var(--space-section) 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head h2,
.hero h1,
.cta-band h2,
.contact-intro h2 {
  color: var(--text);
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
}

.section-sub {
  margin: 0;
  font-size: 1.075rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 1.125rem;
  max-width: 34rem;
  margin: 0 0 1.85rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 2.4rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:hover {
  background: #1a1a28;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: #b8b8c8;
}

.btn-on-dark {
  background: #fff;
  color: var(--ink);
}

.btn-on-dark:hover {
  background: #f4f4ff;
  color: var(--ink);
}

.btn-block {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 247, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 251, 253, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  transition: min-height 0.2s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 3.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

.footer-brand .brand img {
  height: 34px;
  width: 34px;
}

.footer-brand .brand-text {
  font-size: 1.05rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.primary-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.primary-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero — full-bleed atmospheric plane */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #eef0f8 0%, var(--bg) 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(11, 11, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 18, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-brand-mark {
  display: none;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 1.15rem;
  max-width: 11ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-support {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 30rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  transform: perspective(1200px) rotateY(-2deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-visual:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.hero-stage {
  position: relative;
  width: 100%;
}

.hero-diagram-wrap {
  position: relative;
  /* Room for the iMac hanging below the diagram */
  margin-bottom: 11rem;
}

.hero-diagram {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Report iMac — bottom-right corner; sticks out right + bottom */
.hero-imac {
  position: absolute;
  right: -10%;
  top: 86%;
  width: min(72%, 21.75rem);
  z-index: 2;
  filter: drop-shadow(0 18px 28px rgba(11, 11, 18, 0.18));
}

/* iMac device frame (hero report snapshot) */
.imac {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imac-bezel {
  width: 100%;
  padding: 0.4rem 0.4rem 0.15rem;
  border-radius: 10px 10px 2px 2px;
  background: #ffffff;
  border: 1px solid #ececf0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 24px rgba(11, 11, 18, 0.1);
}

.imac-screen {
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 2133 / 1422;
}

.imac-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.imac-chin {
  width: 100%;
  height: 0.65rem;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  border: 1px solid #ececf0;
  border-top: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  position: relative;
}

.imac-chin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translateX(-50%);
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #e4e4e7;
}

.imac-stand {
  width: 28%;
  height: 1.25rem;
  margin-top: -1px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

.imac-foot {
  width: 42%;
  height: 0.28rem;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid #ececf0;
  margin-top: -1px;
}

/* Logo marquee */
.logos {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  width: max-content;
  padding: 0.35rem 0 0.75rem;
  animation: marquee 42s linear infinite;
}

.logo-track img {
  height: 34px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.15rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cfd0df;
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  font-size: 0.975rem;
}

.icon-wrap {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 1.15rem;
}

.stat-accent {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Steps */
.badge-row {
  margin-bottom: 0.85rem;
}

.badge-gradient {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gradient);
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  counter-reset: none;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  position: relative;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  margin-bottom: 0.75rem;
}

.step:nth-child(8) .step-num {
  background: var(--gradient);
  color: var(--ink);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.025em;
}

.step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* Proof */
.proof {
  background: var(--ink);
  color: #fff;
  border: none;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-value {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof-label {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.975rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  color: #fff;
  text-align: center;
  border: none;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto;
  height: 70%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.35), transparent 65%);
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  max-width: 18ch;
  margin-inline: auto;
  position: relative;
}

.cta-band p {
  margin: 0 0 1.65rem;
  opacity: 0.78;
  position: relative;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2.15rem);
  box-shadow: var(--shadow-md);
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form label,
.login-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.req {
  color: var(--accent-bright);
}

.contact-form input,
.contact-form textarea,
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.login-form input[type="text"]:focus-visible,
.login-form input[type="password"]:focus-visible {
  border-color: var(--accent-bright);
  background: var(--surface);
  box-shadow: var(--focus);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.login-form input.is-invalid {
  border-color: #dc2626;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-success {
  text-align: center;
  padding: 1.75rem 0.5rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.form-success p {
  margin: 0 0 1.25rem;
}

.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3.25rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav a,
.footer-meta a,
.legal-links a {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-meta a:hover,
.legal-links a:hover {
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.social-link:hover {
  color: var(--accent);
  border-color: #c7d2fe;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-legal p {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 1.25rem;
}

/* Reveal */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.35s; }

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    transform: none;
  }

  .hero-imac {
    width: min(68%, 18rem);
    right: -6%;
    top: 84%;
  }

  .hero-diagram-wrap {
    margin-bottom: 9rem;
  }

  .card-grid.three,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.15rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.8rem 0.5rem;
  }

  .primary-nav .btn {
    margin-top: 0.35rem;
  }

  .header-inner {
    position: relative;
  }

  .logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.25rem 2rem;
    padding-inline: 1rem;
  }

  .logo-track img[aria-hidden="true"] {
    display: none;
  }

  .logo-marquee {
    mask-image: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 1.75rem, var(--max-width));
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .logo-track {
    animation: none;
  }

  .hero-visual {
    transform: none;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Login page ---------- */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 100%, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--bg);
}

.login-header {
  position: sticky;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 3rem;
}

.login-shell {
  width: min(100%, 28rem);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.login-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.login-sub {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.login-form .field {
  margin-bottom: 1.15rem;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.label-row label {
  margin-bottom: 0;
}

.field-link {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.caps-hint {
  color: #b45309;
  font-weight: 600;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 4.25rem;
}

.password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--bg);
}

.field-check {
  margin-top: 0.25rem;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.check-label input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.login-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.login-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.login-status.is-info {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.login-footer-note {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.login-form input:focus-visible,
.login-form .password-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
