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

    :root {
      --teal-dark:  #1a6b5a;
      --teal-mid:   #218a6e;
      --teal-light: #2aaa86;
      --orange:     #c1540a;
      --orange-light: #e06520;
      --cream:      #f7f5f0;
      --text-dark:  #1a2520;
      --text-mid:   #3d4f47;
      --shadow:     0 8px 32px rgba(26,107,90,0.13);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--text-dark);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── NAV ── */
    nav {
      background: var(--teal-dark);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      height: 64px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .nav-logo span {
      font-family: 'Fraunces', serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.02em;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
      list-style: none;
    }

    .nav-links a {
      color: rgba(255,255,255,0.88);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: #fff; }

    .nav-actions { display: flex; align-items: center; gap: 14px; }

    .btn-login-nav {
      background: transparent;
      border: none;
      color: rgba(255,255,255,0.88);
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      transition: color 0.2s;
    }
    .btn-login-nav:hover { color: #fff; }

    .btn-signup-nav {
      background: var(--orange);
      color: #fff;
      border: none;
      border-radius: 50px;
      padding: 10px 22px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      transition: background 0.2s, transform 0.15s;
      box-shadow: 0 2px 10px rgba(193,84,10,0.35);
      text-decoration: none;
    }
    .btn-signup-nav:hover { background: var(--orange-light); transform: translateY(-1px); }

    /* ── PAGE BODY ── */
    .page-body {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
    }

    /* ── CARD ── */
    .auth-card {
      background: #fff;
      border-radius: 20px;
      padding: 48px 44px;
      width: 100%;
      max-width: 480px;
      box-shadow: 0 12px 48px rgba(26,107,90,0.12);
      animation: fadeUp 0.55s ease both;
    }

    .auth-card h1 {
      font-family: 'Fraunces', serif;
      font-size: 2rem;
      font-weight: 900;
      color: var(--text-dark);
      text-align: center;
      letter-spacing: -0.03em;
      margin-bottom: 8px;
    }

    .auth-card .subtitle {
      text-align: center;
      font-size: 0.92rem;
      color: var(--text-mid);
      margin-bottom: 32px;
    }

    /* ── FORM ── */
    .form-group { margin-bottom: 20px; }

    .form-group label {
      display: block;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 8px;
    }

    .form-control {
      width: 100%;
      padding: 13px 16px;
      border: 1.5px solid rgba(26,107,90,0.2);
      border-radius: 10px;
      font-size: 0.95rem;
      font-family: 'DM Sans', sans-serif;
      color: var(--text-dark);
      background: #fff;
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
      appearance: none;
    }
    .form-control::placeholder { color: #aab5b0; }
    .form-control:focus {
      border-color: var(--teal-mid);
      box-shadow: 0 0 0 3px rgba(33,138,110,0.12);
    }

    select.form-control {
      background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%233d4f47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 40px;
      cursor: pointer;
    }

    .form-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.88rem;
      color: var(--text-mid);
      cursor: pointer;
    }

    .checkbox-label input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: var(--teal-dark);
      cursor: pointer;
    }

    .forgot-link {
      font-size: 0.88rem;
      color: var(--teal-mid);
      font-weight: 600;
      text-decoration: none;
      transition: color 0.2s;
    }
    .forgot-link:hover { color: var(--teal-dark); text-decoration: underline; }

    .btn-submit {
      width: 100%;
      background: var(--teal-dark);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 15px;
      font-size: 1rem;
      font-weight: 700;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 3px 16px rgba(26,107,90,0.25);
      margin-bottom: 20px;
    }
    .btn-submit:hover {
      background: var(--teal-mid);
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(26,107,90,0.35);
    }

    .auth-footer {
      text-align: center;
      font-size: 0.88rem;
      color: var(--text-mid);
    }

    .auth-footer a {
      color: var(--orange);
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
    }
    .auth-footer a:hover { color: var(--orange-light); text-decoration: underline; }

    /* ── NAV AUTH BUTTONS ──
       renderNavActions() in auth.js injects .btn-login / .btn-signup when
       logged out. These rules are copied verbatim from home.css so every page
       sharing this stylesheet (terms, privacy, contact, forgot-password)
       matches the homepage exactly. */
    .btn-login {
      background: transparent;
      border: none;
      color: rgba(255,255,255,0.88);
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      padding: 8px 4px;
      transition: color 0.2s;
      font-family: 'DM Sans', sans-serif;
      text-decoration: none;
    }
    .btn-login:hover { color: #fff; }

    .btn-signup {
      background: var(--orange);
      color: #fff;
      border: none;
      border-radius: 50px;
      padding: 10px 22px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 2px 10px rgba(193,84,10,0.35);
      text-decoration: none;
    }
    .btn-signup:hover {
      background: var(--orange-light);
      transform: translateY(-1px);
      box-shadow: 0 4px 18px rgba(193,84,10,0.45);
    }

    /* ── PASSWORD SHOW/HIDE (matches signup) ── */
    .password-field { position: relative; }
    .password-field .form-control { padding-right: 42px; }
    .password-toggle-btn {
      position: absolute;
      top: 50%;
      right: 4px;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      color: #7a8b84;
      border-radius: 6px;
      transition: color 0.2s, background 0.2s;
    }
    .password-toggle-btn:hover { color: var(--teal-mid); background: rgba(33,138,110,0.08); }
    .password-toggle-btn svg { width: 18px; height: 18px; }

    /* ── FOOTER ── */
    footer {
      background: var(--text-dark);
      color: rgba(255,255,255,0.5);
      padding: 24px 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.82rem;
      gap: 20px;
      flex-wrap: wrap;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
    }
    .footer-logo span {
      font-family: 'Fraunces', serif;
      font-weight: 700;
      font-size: 1rem;
      color: #fff;
    }

    .footer-links-row { display: flex; gap: 24px; }
    .footer-links-row a {
      color: rgba(255,255,255,0.5);
      text-decoration: none;
      font-size: 0.82rem;
      transition: color 0.2s;
    }
    .footer-links-row a:hover { color: var(--teal-light); }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 600px) {
      nav { padding: 0 20px; }
      .nav-links { display: none; }
      .auth-card { padding: 32px 24px; }
      footer { padding: 24px; flex-direction: column; text-align: center; }
    }

    /* ── OTP CODE ENTRY (verify.html + forgot-password.html) ── */
    .otp-inputs {
      display: flex;
      gap: 8px;
      justify-content: center;
      margin: 4px 0 18px;
    }
    .otp-inputs input {
      /* flex-shrink so longer codes (Supabase allows up to 10 digits)
         still fit inside the card instead of overflowing it */
      flex: 1 1 auto;
      width: 46px;
      min-width: 0;
      max-width: 56px;
      height: 56px;
      text-align: center;
      font-family: 'DM Sans', sans-serif;
      font-size: 1.5rem;
      font-weight: 600;
      color: #1a2520;
      border: 1.5px solid #d8e0dd;
      border-radius: 10px;
      background: #fff;
      transition: border-color 0.15s, box-shadow 0.15s;
      -moz-appearance: textfield;
    }
    .otp-inputs input::-webkit-outer-spin-button,
    .otp-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .otp-inputs input:focus {
      outline: none;
      border-color: #1a6b5a;
      box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.13);
    }
    .otp-inputs input.filled { border-color: #1a6b5a; }
    .otp-inputs.invalid input { border-color: #c53030; }

    /* Where the code was sent, shown above the boxes */
    .otp-target {
      text-align: center;
      font-size: 0.9rem;
      color: #3d4f47;
      margin-bottom: 16px;
      word-break: break-word;
    }
    .otp-target strong { color: #1a2520; }

    /* Resend row under the boxes */
    .otp-resend {
      text-align: center;
      font-size: 0.85rem;
      color: #5a6b63;
      margin-top: -6px;
      margin-bottom: 16px;
    }
    .otp-resend button {
      background: none;
      border: none;
      padding: 0;
      font: inherit;
      font-weight: 600;
      color: #1a6b5a;
      cursor: pointer;
      text-decoration: underline;
    }
    .otp-resend button:disabled {
      color: #9aa8a2;
      cursor: default;
      text-decoration: none;
    }

    /* ── CHANNEL CHOOSER (email vs SMS) ── */
    .channel-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
    .channel-option {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      padding: 16px;
      border: 1.5px solid #d8e0dd;
      border-radius: 12px;
      background: #fff;
      cursor: pointer;
      text-align: left;
      font-family: 'DM Sans', sans-serif;
      transition: border-color 0.15s, background 0.15s;
    }
    .channel-option:hover:not(:disabled) { border-color: #1a6b5a; background: #f7fbf9; }
    .channel-option:disabled { opacity: 0.55; cursor: not-allowed; }
    .channel-option .channel-icon {
      width: 42px; height: 42px; flex-shrink: 0;
      border-radius: 50%;
      background: #eaf4f0;
      display: flex; align-items: center; justify-content: center;
      color: #1a6b5a;
    }
    .channel-option .channel-text { flex: 1; min-width: 0; }
    .channel-option .channel-title {
      display: block; font-weight: 700; font-size: 0.95rem; color: #1a2520; margin-bottom: 2px;
    }
    .channel-option .channel-sub {
      display: block; font-size: 0.82rem; color: #5a6b63; word-break: break-word;
    }

    @media (max-width: 420px) {
      .otp-inputs { gap: 6px; }
      .otp-inputs input { width: 40px; height: 50px; font-size: 1.3rem; }
    }
