/* Login styles */
    :root {
      --bg-dark: #050915;
      --panel: rgba(15, 23, 42, 0.75);
      --text: #f8fafc;
      --muted: #94a3b8;
      --primary: #38bdf8;
      --primary-dark: #0ea5e9;
      --accent: #f472b6;
      --border: rgba(148, 163, 184, 0.25);
      --input-bg: rgba(15, 23, 42, 0.25);
      --danger: #f87171;
      --success: #34d399;
    }

    *, *::before, *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 15% 15%, rgba(244, 114, 182, 0.18), transparent 40%),
        var(--bg-dark);
      color: var(--text);
      min-height: 100vh;
      padding: 32px 20px 64px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 24px;
    }

    a {
      color: var(--primary);
      text-decoration: none;
    }

    .site-header {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto 36px;
      padding-bottom: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
    }

    .brand-link {
      text-decoration: none;
      color: inherit;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand-tagline {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .nav-links {
      display: flex;
      gap: 18px;
      font-weight: 600;
      color: var(--muted);
      flex-wrap: wrap;
    }

    .nav-links a {
      color: inherit;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .auth-buttons {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .auth-shell {
      width: 100%;
      max-width: 1100px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 32px;
      align-items: stretch;
    }

    .auth-card,
    .auth-panel {
      border-radius: 24px;
      border: 1px solid var(--border);
      background: var(--panel);
      padding: 36px;
      position: relative;
      box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
    }

    .auth-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 24px;
      border: 1px solid rgba(56, 189, 248, 0.15);
      pointer-events: none;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(56, 189, 248, 0.15);
      color: var(--primary);
      font-weight: 600;
      font-size: 0.95rem;
    }

    .auth-card h1 {
      font-size: clamp(2.2rem, 3vw, 2.9rem);
      margin: 20px 0 12px;
      line-height: 1.2;
    }

    .auth-card p {
      color: var(--muted);
      max-width: 440px;
      font-size: 1.05rem;
    }

    .metric-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px;
      margin-top: 32px;
    }

    .metric-card {
      padding: 18px;
      border-radius: 16px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      background: rgba(15, 23, 42, 0.5);
    }

    .metric-card span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .metric-card strong {
      display: block;
      margin-top: 6px;
      font-size: 1.1rem;
    }

    .brand-icon {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 22px;
      color: #0f172a;
      margin-bottom: 18px;
    }

    .auth-panel header {
      margin-bottom: 24px;
    }

    .auth-panel h2 {
      margin: 8px 0 6px;
      font-size: 2rem;
    }

    .auth-panel p {
      color: var(--muted);
      font-size: 0.98rem;
    }

    .alert {
      margin-bottom: 18px;
      border-radius: 14px;
      padding: 12px 14px;
      font-size: 0.95rem;
      display: none;
    }

    .alert.error {
      background: rgba(248, 113, 113, 0.12);
      border: 1px solid rgba(248, 113, 113, 0.4);
      color: var(--danger);
    }

    .alert.success {
      background: rgba(52, 211, 153, 0.12);
      border: 1px solid rgba(52, 211, 153, 0.4);
      color: var(--success);
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    label {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 6px;
      color: var(--text);
    }

    input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: var(--input-bg);
      color: var(--text);
      font-size: 1rem;
      transition: border 0.2s ease, box-shadow 0.2s ease;
    }

    input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    }

    .btn {
      border: none;
      border-radius: 999px;
      font-weight: 600;
      font-size: 1rem;
      padding: 14px 16px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #0f172a;
      box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
    }

    .btn-secondary {
      background: rgba(148, 163, 184, 0.15);
      border: 1px solid var(--border);
      color: var(--text);
    }

    .btn-ghost {
      background: transparent;
      color: var(--muted);
      border: none;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .forgot-toggle {
      margin-top: 6px;
      text-align: right;
    }

    .forgot-toggle button {
      font-size: 0.95rem;
      border: none;
      background: none;
      color: var(--primary);
      cursor: pointer;
      font-weight: 600;
    }

    .forgot-card {
      margin-top: 24px;
      border-radius: 18px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      background: rgba(15, 23, 42, 0.55);
      padding: 18px;
      display: none;
    }

    .forgot-card.active {
      display: block;
    }

    .forgot-card h3 {
      margin: 0 0 8px;
      font-size: 1.1rem;
    }

    .forgot-steps {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 10px;
    }

    .forgot-step {
      display: none;
      flex-direction: column;
      gap: 12px;
    }

    .forgot-step.active {
      display: flex;
    }

    .forgot-message {
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.9rem;
      display: none;
    }

    .forgot-message.success {
      background: rgba(52, 211, 153, 0.15);
      color: var(--success);
      border: 1px solid rgba(52, 211, 153, 0.4);
    }

    .forgot-message.error {
      background: rgba(248, 113, 113, 0.15);
      color: var(--danger);
      border: 1px solid rgba(248, 113, 113, 0.4);
    }

    .form-footer {
      margin-top: 18px;
      text-align: center;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .form-footer a {
      font-weight: 600;
    }

    .global-footer {
      width: 100%;
      margin-top: 48px;
      text-align: center;
      color: var(--muted);
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      body {
        padding: 24px 16px;
      }
      .auth-card,
      .auth-panel {
        padding: 28px;
      }
    }

    @media (max-width: 720px) {
      .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
      }

      .nav-links,
      .auth-buttons {
        width: 100%;
      }

      .nav-links {
        justify-content: space-between;
      }

      .auth-buttons {
        justify-content: flex-start;
      }
    }
  

/* Signup additions */
    :root {
      --bg-dark: #050915;
      --panel: rgba(15, 23, 42, 0.75);
      --panel-light: rgba(15, 23, 42, 0.6);
      --text: #f8fafc;
      --muted: #94a3b8;
      --primary: #38bdf8;
      --primary-dark: #0ea5e9;
      --accent: #f472b6;
      --border: rgba(148, 163, 184, 0.25);
      --danger: #f87171;
      --success: #34d399;
    }

    *, *::before, *::after { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 15% 15%, rgba(244, 114, 182, 0.18), transparent 40%),
        var(--bg-dark);
      color: var(--text);
      min-height: 100vh;
      padding: 32px 20px 64px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 24px;
    }

    a { color: var(--primary); text-decoration: none; }

    .site-header {
      max-width: 1200px;
      margin: 0 auto 36px;
      padding-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 20px;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
    }

    .brand-link {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      color: inherit;
      min-width: 220px;
    }

    .brand-link .brand-icon { margin-bottom: 0; }

    .brand-link strong {
      font-size: 1.15rem;
    }

    .brand-link span {
      display: block;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .nav-links {
      display: flex;
      gap: 18px;
      flex: 1;
      flex-wrap: wrap;
    }

    .nav-links a {
      color: var(--muted);
      font-weight: 600;
      font-size: 0.95rem;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .auth-buttons {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .auth-shell {
      width: 100%;
      max-width: 1200px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 32px;
      align-items: stretch;
    }

    .auth-card,
    .auth-panel {
      border-radius: 24px;
      border: 1px solid var(--border);
      background: var(--panel);
      padding: 38px;
      position: relative;
      box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
    }

    .auth-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 24px;
      border: 1px solid rgba(56, 189, 248, 0.15);
      pointer-events: none;
    }

    .brand-icon {
      width: 60px;
      height: 60px;
      border-radius: 20px;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 24px;
      color: #0f172a;
      margin-bottom: 18px;
    }

    .auth-card h1 {
      font-size: clamp(2.4rem, 3.2vw, 3rem);
      margin: 12px 0 10px;
      line-height: 1.15;
    }

    .auth-card p {
      color: var(--muted);
      font-size: 1.05rem;
      max-width: 460px;
    }

    .pill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .pill {
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.35);
      font-size: 0.9rem;
      color: var(--muted);
    }

    .auth-panel header { margin-bottom: 24px; }

    .auth-panel h2 {
      margin: 8px 0 10px;
      font-size: 2rem;
    }

    .auth-panel p { color: var(--muted); }

    .alert {
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 18px;
      display: none;
      font-size: 0.95rem;
    }

    .alert.error {
      background: rgba(248, 113, 113, 0.12);
      border: 1px solid rgba(248, 113, 113, 0.35);
      color: var(--danger);
    }

    .alert.success {
      background: rgba(52, 211, 153, 0.12);
      border: 1px solid rgba(52, 211, 153, 0.35);
      color: var(--success);
    }

    form { display: flex; flex-direction: column; gap: 18px; }

    label {
      font-weight: 600;
      margin-bottom: 6px;
      font-size: 0.95rem;
    }

    input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.35);
      color: var(--text);
      font-size: 1rem;
      transition: border 0.2s ease, box-shadow 0.2s ease;
    }

    input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    }

    .form-help {
      margin-top: 6px;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .form-help.status-success { color: var(--success); }
    .form-help.status-error { color: var(--danger); }
    .form-help.status-checking { color: var(--primary); }

    .company-mode-toggle {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 12px;
      margin: 12px 0 6px;
    }

    .company-mode-toggle button {
      border-radius: 18px;
      padding: 12px 16px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.35);
      color: var(--text);
      font-weight: 600;
      cursor: pointer;
      transition: border 0.2s ease, box-shadow 0.2s ease;
    }

    .company-mode-toggle button.active {
      border-color: var(--primary);
      box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
      background: rgba(56, 189, 248, 0.15);
      color: var(--primary);
    }

    .company-field { display: none; }
    .company-field.active { display: block; }

    .dual-inputs {
      display: grid;
      gap: 14px;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .btn {
      border: none;
      border-radius: 999px;
      font-weight: 600;
      font-size: 1rem;
      padding: 14px 16px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #0f172a;
      box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
    }

    .btn-secondary {
      background: rgba(148, 163, 184, 0.15);
      border: 1px solid var(--border);
      color: var(--text);
    }

    .btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .form-footer {
      margin-top: 18px;
      text-align: center;
      color: var(--muted);
      font-size: 0.95rem;
    }

    @media (max-width: 768px) {
      body { padding: 24px 16px; }
      .auth-card, .auth-panel { padding: 28px; }
      .dual-inputs { grid-template-columns: 1fr; }
    }

    @media (max-width: 720px) {
      .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
      }

      .nav-links,
      .auth-buttons {
        width: 100%;
      }

      .nav-links { justify-content: space-between; }
      .auth-buttons { justify-content: flex-start; }
    }
  
