/* Stylesheet for the server-rendered public site (landing page + legal documents).
   Independent from the SPA stylesheet in ClientApp/src/index.css: the shared primitives below
   (design tokens, buttons, form fields, messages) are intentionally duplicated so neither side can
   break the other. */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --danger: #b91c1c;
  --warning: #b45309;
  --focus: #0ea5e9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

/* Shared primitives */
.page h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.field-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.field-row .field {
  flex: 1 1 0;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--text-muted);
}

.msg {
  margin: 0.75rem 0;
}

.msg-muted {
  color: var(--text-muted);
}

.msg-error {
  color: var(--danger);
}

.msg-success {
  color: #15803d;
}

/* The mobile menu button swaps its icon purely from aria-expanded, which the script toggles. */
.mobile-menu-btn .nav-icon-close,
.mobile-menu-btn[aria-expanded='true'] .nav-icon-open {
  display: none;
}

.mobile-menu-btn[aria-expanded='true'] .nav-icon-close {
  display: block;
}

/* Landing Page Styles */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #f8fafc 50%);
}

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.landing-brand:hover {
  color: #5eead4;
}

.brand-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #5eead4;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: #fff;
}

.landing-nav-links .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.landing-nav-links .btn-primary {
  background: #5eead4;
  color: #0f172a;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.landing-nav-links .btn-primary:hover {
  background: #2dd4bf;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(94, 234, 212, 0.15), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.hero-content {
  color: #fff;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 500px;
}

.hero-no-card {
  font-size: 0.95rem;
  color: #5eead4;
  margin: 0 0 1.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.hero-buttons .btn-primary {
  background: #5eead4;
  color: #0f172a;
  font-weight: 600;
}

.hero-buttons .btn-primary:hover {
  background: #2dd4bf;
}

.hero-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Demo Preview */
.demo-preview {
  display: flex;
  justify-content: center;
}

.demo-preview-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 98%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 98%);
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 1.5rem;
  background: #f8fafc;
}

.how-it-works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  position: relative;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0ea5e9;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: #f0f9ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #0ea5e9;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Benefits Section */
.benefits {
  padding: 6rem 1.5rem;
  background: #fff;
}

.benefits-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #64748b;
  margin: 0 0 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.benefit-card {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #5eead4, #0d9488);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #0f172a;
}

.benefit-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

/* About Us Section */
.about-us {
  padding: 5rem 1.5rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.about-us-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.about-us-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 16px;
  background: #ccfbf1;
  color: #0f766e;
}

.about-us-marker svg {
  width: 2.25rem;
  height: 2.25rem;
}

.about-us-content {
  max-width: 720px;
}

.about-us-eyebrow {
  margin: 0 0 0.5rem;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-us .section-title {
  margin-bottom: 1rem;
  text-align: left;
}

.about-us-content p:not(.about-us-eyebrow) {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-us-content p:last-child {
  margin-bottom: 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #0d9488;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Features Section */
.features {
  padding: 6rem 1.5rem;
  background: #f8fafc;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon.teal { background: linear-gradient(135deg, #5eead4, #0d9488); }
.feature-icon.blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.feature-icon.purple { background: linear-gradient(135deg, #c084fc, #a855f7); }
.feature-icon.green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.feature-icon.orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.feature-icon.pink { background: linear-gradient(135deg, #f472b6, #ec4899); }

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: #0f172a;
}

.feature-card > p {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: #0d9488;
  flex-shrink: 0;
}

/* CTA Section */
.cta-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.cta-buttons .btn-primary {
  background: #5eead4;
  color: #0f172a;
  font-weight: 600;
}

.cta-buttons .btn-primary:hover {
  background: #2dd4bf;
}

.cta-buttons .btn-white {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
}

.cta-buttons .btn-white:hover {
  background: #f1f5f9;
}

/* Pricing Section */
.pricing {
  padding: 6rem 1.5rem;
  background: #fff;
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.pricing-card-highlight {
  border-color: #5eead4;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff;
}

.pricing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
  margin: 0 0 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 0 1rem;
  min-height: 3rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pricing-period {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-trial {
  font-size: 1rem;
  color: #5eead4;
  margin: 0 0 1.5rem;
  min-height: 1.5rem;
}

.pricing-includes-free {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.75rem;
  font-style: italic;
}

.pricing-custom-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.pricing-actions-custom {
  margin-top: auto;
  padding-top: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.pricing-features .check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #5eead4;
  flex-shrink: 0;
}

.pricing-actions .btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: #5eead4;
  color: #0f172a;
  font-weight: 600;
}

.pricing-actions .btn-secondary {
  background: transparent;
  color: #5eead4;
  border: 2px solid #5eead4;
}

.pricing-actions .btn:hover {
  background: #2dd4bf;
}

.pricing-actions .btn-secondary:hover {
  background: rgba(94, 234, 212, 0.15);
}

@media (max-width: 640px) {
  .pricing {
    padding: 4rem 1rem;
  }

  .pricing-card {
    padding: 1.75rem;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }
}

/* Footer */
.landing-footer {
  padding: 4rem 1.5rem 2rem;
  background: #0f172a;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #fff;
}

.footer-brand .brand-icon {
  color: #5eead4;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 0 0 1rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
}

.footer-identity {
  margin-top: 0.45rem !important;
  font-size: 0.85rem !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    position: static;
  }

  .hero-content {
    order: 1;
    position: relative;
    z-index: 1;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .demo-preview {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .demo-preview-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    filter: blur(8px) brightness(0.5);
    transform: scale(1.05);
  }

  .landing-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .landing-nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .stats-row {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 7rem 1rem 3rem;
  }

  .benefits,
  .about-us,
  .features,
  .cta-section {
    padding: 4rem 1rem;
  }

  .about-us-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-us .section-title {
    text-align: left;
  }

  .benefits-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal document pages */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
}

.legal-page-header {
  margin-bottom: 1rem;
}

.legal-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.legal-section + .legal-section {
  margin-top: 1.4rem;
}

.legal-section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.legal-page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.legal-page-footer a {
  font-size: 0.9rem;
}

/* Contact section */
.landing-contact {
  padding: 4rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f7 100%);
  border-top: 1px solid var(--border);
}

.landing-contact-inner {
  max-width: 960px;
  margin: 0 auto;
}

.contact-form {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.public-contact-actions {
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .contact-form .field-row {
    flex-direction: column;
  }
}

/* Registration page */
.register-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 160px, #f8fafc 160px);
  padding-top: 5rem;
}

.register-page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.register-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.register-card h1 {
  margin: 0 0 0.25rem;
  color: var(--text);
}

.register-card .auth-lead {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.register-card .auth-trial-note {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.register-field-row .field {
  min-width: 0;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.register-consent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.register-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.register-consent-item input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.register-consent-item a {
  color: var(--primary);
  text-decoration: underline;
}

.register-company-section,
.register-company-address-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.register-company-section[hidden],
.register-company-address-section[hidden] {
  display: none;
}

.register-card .form-actions {
  margin-top: 0.5rem;
}

.register-card .form-actions .btn {
  width: 100%;
}

.register-card .auth-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .register-page-inner {
    padding-top: 1.5rem;
  }

  .register-card {
    padding: 1.5rem;
  }

  .register-field-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

