﻿.navbar-nav .dropdown {
    display: none;
  }

  .sign-up-shell {
    --sm-bg-soft: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(25, 135, 84, 0.08));
    --sm-border: rgba(15, 23, 42, 0.08);
    --sm-surface: rgba(255, 255, 255, 0.86);
    --sm-muted: #5f6b7a;
    --sm-hero-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  }

  .hero-card {
    background: var(--sm-bg-soft);
    border: 1px solid var(--sm-border);
    border-radius: 1.75rem;
    box-shadow: var(--sm-hero-shadow);
    padding: 2rem;
    overflow: hidden;
    position: relative;
  }

  [data-bs-theme="light"] .hero-card,
  [data-bs-theme="light"] .sign-up-card {
    color: #0f172a;
  }

  [data-bs-theme="light"] .hero-card h1,
  [data-bs-theme="light"] .sign-up-card h2,
  [data-bs-theme="light"] .hero-stat-card strong {
    color: #0f172a;
  }

  [data-bs-theme="light"] .sign-up-card {
    background: rgba(255, 255, 255, 0.96);
  }

  [data-bs-theme="light"] .form-control,
  [data-bs-theme="light"] .password-toggle {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
  }

  [data-bs-theme="light"] .form-control::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
  }

  .hero-card::before {
    content: "";
    position: absolute;
    inset: auto -5rem -5rem auto;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.22), transparent 70%);
    pointer-events: none;
  }

  .hero-badge {
    background: rgba(13, 110, 253, 0.14);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.16);
    font-size: var(--sm-text-caption);
    letter-spacing: 0.01em;
  }

  .hero-copy {
    color: var(--sm-muted);
    font-size: var(--sm-text-body-lg);
    line-height: var(--sm-line-body);
    max-width: 44rem;
  }

  .hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .hero-stat-card {
    background: var(--sm-surface);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
  }

  .hero-stat-card small {
    display: block;
    color: var(--sm-muted);
    font-size: var(--sm-text-caption);
    margin-bottom: 0.35rem;
  }

  .hero-stat-card strong {
    display: block;
    font-size: var(--sm-text-body);
  }

  .sign-up-card {
    border-radius: 1.6rem;
    border: 1px solid var(--sm-border);
  }


  .google-signup-button-wrap {
    min-height: 44px;
  }

  .google-signup-button-slot {
    min-width: 175px;
  }

  .auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sm-muted);
  }

  .auth-divider span {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
  }

  .auth-divider strong {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--sm-muted);
  }

  .name-input-wrap {
    position: relative;
  }

  .name-input {
    padding-right: 5.5rem;
  }

  .name-counter {
    position: absolute;
    top: 50%;
    right: 1.1rem;
    transform: translateY(-50%);
    font-size: var(--sm-text-caption);
    font-weight: 600;
    transition: color 0.2s ease;
    pointer-events: none;
    background: transparent;
  }

  .name-counter-hidden {
    display: none;
  }

  .name-counter-green {
    color: #198754;
  }

  .name-counter-yellow {
    color: #b7791f;
  }

  .name-counter-red {
    color: #dc3545;
  }

  .password-panel {
    margin-top: 0.9rem;
    padding: 0.95rem 1rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  .password-panel-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-width: 0;
    transform: translateY(-0.25rem);
    pointer-events: none;
  }

  .password-panel-expanded {
    max-height: 16rem;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, margin-top 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
  }

  .password-panel-compact {
    max-height: 5rem;
    min-height: 5rem;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, margin-top 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
  }

  .password-panel-compact .password-requirements {
    display: none;
  }

  .password-panel-compact .password-strength-meter {
    margin-bottom: 0.35rem;
  }

  .confirm-password-panel {
    min-height: 5rem;
  }

  .confirm-password-panel .password-strength-meter {
    margin-bottom: 0.35rem;
  }

  .password-strength-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
  }

  .password-strength-label {
    color: var(--sm-muted);
    font-size: var(--sm-text-caption);
    font-weight: 600;
  }

  .password-strength-text {
    font-size: var(--sm-text-caption);
    font-weight: 700;
  }

  .password-strength-meter {
    position: relative;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    margin-bottom: 0.9rem;
  }


  .password-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.22s ease, background-color 0.22s ease;
  }

  .password-strength-fill.password-strength-empty {
    background: #94a3b8;
  }

  .password-strength-fill.password-strength-weak {
    background: linear-gradient(90deg, #f87171, #dc3545);
  }

  .password-strength-fill.password-strength-fair {
    background: linear-gradient(90deg, #fbbf24, #d97706);
  }

  .password-strength-fill.password-strength-good {
    background: linear-gradient(90deg, #60a5fa, #0d6efd);
  }

  .password-strength-fill.password-strength-strong {
    background: linear-gradient(90deg, #34d399, #198754);
  }

  .password-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
  }

  .password-rule {
    position: relative;
    padding-left: 1.2rem;
    font-size: var(--sm-text-caption);
    line-height: 1.35;
  }

  .password-rule::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.95;
  }

  .password-rule-pending {
    color: #64748b;
  }

  .password-rule-met {
    color: #198754;
  }

  .password-match-status {
    margin-top: 0.9rem;
    min-height: 1.35rem;
    font-size: var(--sm-text-caption);
    font-weight: 700;
  }

  .password-match-idle {
    color: #64748b;
  }

  .password-match-success {
    color: #198754;
  }

  .password-match-error {
    color: #dc3545;
  }

  .password-strength-empty {
    color: #64748b;
  }

  .password-strength-weak {
    color: #dc3545;
  }

  .password-strength-fair {
    color: #d97706;
  }

  .password-strength-good {
    color: #0d6efd;
  }

  .password-strength-strong {
    color: #198754;
  }

  .sign-up-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .sign-up-icon-svg,
  .toggle-icon,
  .action-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
  }

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

  .field-block-spaced {
    padding-top: 1.3rem;
  }

  .field-label {
    margin-bottom: 0;
    color: var(--sm-muted);
    font-size: var(--sm-text-body);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transform: translateY(0.2rem);
  }

  .sign-up-card .text-muted,
  .password-hint,
  .legal-consent,
  .marketing-opt-in {
    font-size: var(--sm-text-body);
    line-height: var(--sm-line-body);
  }

  .sign-up-card .form-control {
    font-size: var(--sm-text-input);
  }

  .form-control,
  .password-toggle,
  .action-btn {
    border-radius: 0.95rem;
  }

  .password-toggle {
    min-width: 3.4rem;
  }

  .password-toggle:hover,
  .password-toggle:focus {
    z-index: 3;
  }

  .action-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .password-hint {
    color: var(--sm-muted);
  }

  .legal-consent,
  .marketing-opt-in {
    color: var(--sm-muted);
  }

  .legal-consent a {
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
  }

  .legal-consent a:hover,
  .legal-consent a:focus {
    text-decoration: underline;
  }

  .marketing-opt-in {
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
  }

  .marketing-opt-in .form-check-input {
    margin-top: 0.35rem;
  }

  .marketing-opt-in .form-check-label {
    padding-left: 0.25rem;
  }

  .action-btn {
    min-width: 12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: var(--sm-text-button);
    font-weight: 600;
    padding-inline: 1.15rem;
  }

  .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  [data-bs-theme="dark"] .sign-up-shell,
  body.dark-mode .sign-up-shell {
    --sm-bg-soft: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(25, 135, 84, 0.14));
    --sm-border: rgba(148, 163, 184, 0.22);
    --sm-surface: rgba(15, 23, 42, 0.72);
    --sm-muted: #b3c0cf;
    --sm-hero-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
  }

  [data-bs-theme="dark"] .hero-badge,
  body.dark-mode .hero-badge {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.18);
    color: #8ec5ff;
  }

  [data-bs-theme="dark"] .hero-card,
  body.dark-mode .hero-card {
    background: linear-gradient(135deg, rgba(13, 27, 45, 0.94), rgba(14, 45, 40, 0.88));
    border-color: rgba(96, 165, 250, 0.12);
  }

  [data-bs-theme="dark"] .hero-stat-card,
  body.dark-mode .hero-stat-card {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  [data-bs-theme="dark"] .hero-stat-card strong,
  body.dark-mode .hero-stat-card strong {
    color: #f3f7fd;
  }

  [data-bs-theme="dark"] .hero-stat-card small,
  body.dark-mode .hero-stat-card small {
    color: #9fb2c8;
  }

  [data-bs-theme="dark"] .sign-up-card,
  body.dark-mode .sign-up-card {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
  }

  [data-bs-theme="dark"] .sign-up-icon,
  body.dark-mode .sign-up-icon {
    background: rgba(96, 165, 250, 0.14);
    color: #8ec5ff;
  }

  [data-bs-theme="dark"] .password-panel,
  body.dark-mode .password-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.84));
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  [data-bs-theme="dark"] .marketing-opt-in,
  body.dark-mode .marketing-opt-in {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.18);
  }

  [data-bs-theme="dark"] .form-control,
  [data-bs-theme="dark"] .password-toggle,
  body.dark-mode .form-control,
  body.dark-mode .password-toggle {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #e5eef8 !important;
    -webkit-text-fill-color: #e5eef8 !important;
    caret-color: #e5eef8 !important;
  }

  [data-bs-theme="dark"] .field-label,
  [data-bs-theme="dark"] h1,
  [data-bs-theme="dark"] h2,
  [data-bs-theme="dark"] .password-hint,
  [data-bs-theme="dark"] .legal-consent,
  [data-bs-theme="dark"] .marketing-opt-in,
  [data-bs-theme="dark"] .password-strength-label,
  body.dark-mode .field-label,
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode .password-hint,
  body.dark-mode .legal-consent,
  body.dark-mode .marketing-opt-in,
  body.dark-mode .password-strength-label {
    color: #f3f7fd;
  }

  [data-bs-theme="dark"] .text-muted,
  [data-bs-theme="dark"] .hero-copy,
  body.dark-mode .text-muted,
  body.dark-mode .hero-copy {
    color: var(--sm-muted) !important;
  }

  [data-bs-theme="dark"] .form-control::placeholder,
  body.dark-mode .form-control::placeholder {
    color: #8ea0b5 !important;
    -webkit-text-fill-color: #8ea0b5 !important;
  }

  [data-bs-theme="dark"] .form-control:focus,
  body.dark-mode .form-control:focus {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.16);
    color: #e5eef8 !important;
    -webkit-text-fill-color: #e5eef8 !important;
  }

  [data-bs-theme="dark"] input.form-control:-webkit-autofill,
  [data-bs-theme="dark"] input.form-control:-webkit-autofill:hover,
  [data-bs-theme="dark"] input.form-control:-webkit-autofill:focus,
  body.dark-mode input.form-control:-webkit-autofill,
  body.dark-mode input.form-control:-webkit-autofill:hover,
  body.dark-mode input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #e5eef8 !important;
    caret-color: #e5eef8 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.88) inset !important;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.88) inset !important;
    transition: background-color 9999s ease-out 0s;
  }


  [data-bs-theme="dark"] .auth-divider span,
  body.dark-mode .auth-divider span {
    background: rgba(148, 163, 184, 0.2);
  }

  [data-bs-theme="dark"] .auth-divider strong,
  body.dark-mode .auth-divider strong {
    color: var(--sm-muted);
  }

  [data-bs-theme="dark"] .password-strength-meter,
  body.dark-mode .password-strength-meter {
    background: rgba(148, 163, 184, 0.18);
  }

  [data-bs-theme="dark"] .password-rule-pending,
  [data-bs-theme="dark"] .password-strength-empty,
  [data-bs-theme="dark"] .password-match-idle,
  body.dark-mode .password-rule-pending,
  body.dark-mode .password-strength-empty,
  body.dark-mode .password-match-idle {
    color: #94a3b8 !important;
  }

  [data-bs-theme="dark"] .password-rule-met,
  body.dark-mode .password-rule-met {
    color: #4ade80 !important;
  }

  [data-bs-theme="dark"] .name-counter-green,
  body.dark-mode .name-counter-green {
    color: #4ade80 !important;
  }

  [data-bs-theme="dark"] .name-counter-yellow,
  body.dark-mode .name-counter-yellow {
    color: #fbbf24 !important;
  }

  [data-bs-theme="dark"] .name-counter-red,
  body.dark-mode .name-counter-red {
    color: #fb7185 !important;
  }

  [data-bs-theme="dark"] .password-strength-weak,
  body.dark-mode .password-strength-weak {
    color: #fb7185 !important;
  }

  [data-bs-theme="dark"] .password-strength-fair,
  body.dark-mode .password-strength-fair {
    color: #fbbf24 !important;
  }

  [data-bs-theme="dark"] .password-strength-good,
  body.dark-mode .password-strength-good {
    color: #60a5fa !important;
  }

  [data-bs-theme="dark"] .password-strength-strong,
  body.dark-mode .password-strength-strong {
    color: #34d399 !important;
  }

  @media (max-width: 991.98px) {
    .hero-stat-grid {
      grid-template-columns: 1fr;
    }

    .password-requirements {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 575.98px) {
    .hero-card {
      padding: 1.5rem;
    }

    .action-row {
      flex-direction: column;
    }

    .action-btn {
      width: 100%;
    }
  }
