  /* Hide the global navigation and footer from base.html to create a clean auth experience */
  nav, footer { display: none !important; }
  /* Since steps are absolutely positioned when hidden, the container needs min-height to not collapse */
  .relative.w-full { min-height: 460px; }

  /* ===== Auth atmosphere ===== */
  .auth-bg {
    position: relative;
    background:
      radial-gradient(900px 500px at 0% 0%, rgba(99,102,241,.18), transparent 60%),
      radial-gradient(800px 500px at 100% 100%, rgba(20,184,166,.18), transparent 60%),
      linear-gradient(180deg, #f8faff 0%, #f1f5f9 100%);
    overflow: hidden;
    isolation: isolate;
  }
  .auth-bg::before, .auth-bg::after {
    content: ""; position: absolute; border-radius: 9999px;
    filter: blur(80px); z-index: 0; pointer-events: none; opacity: .55;
  }
  .auth-bg::before {
    top: -120px; left: -80px; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(99,102,241,.45), transparent 70%);
  }
  .auth-bg::after {
    bottom: -120px; right: -80px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(16,185,129,.4), transparent 70%);
  }

  /* ===== Animations ===== */
  @keyframes floatUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes shimmer {
    0% { background-position: -200% 0; } 100% { background-position: 200% 0; }
  }
  @keyframes pulseDot {
    0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
    50%     { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  }
  @keyframes spinSlow { to { transform: rotate(360deg); } }
  @keyframes ringBreath {
    0%,100% { transform: scale(1); opacity: .55; }
    50%     { transform: scale(1.08); opacity: .9; }
  }
  .reveal { animation: floatUp .55s ease both; }

  /* ===== Glass form panel ===== */
  .auth-glass {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow:
      0 30px 80px -30px rgba(15,23,42,.35),
      inset 0 1px 0 rgba(255,255,255,.6);
    border-radius: 28px;
  }

  /* ===== Brand mark (logo with halo + live ring) ===== */
  .brand-mark {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(20,184,166,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 32px -14px rgba(20,184,166,.35);
  }
  .brand-mark::before {
    content: ""; position: absolute; inset: -18px;
    border-radius: 9999px;
    background: radial-gradient(closest-side, rgba(20,184,166,.25), transparent 70%);
    z-index: -1; pointer-events: none;
  }
  .brand-mark::after {
    content: ""; position: absolute; inset: -6px;
    border-radius: 26px;
    border: 1.5px dashed rgba(20,184,166,.4);
    animation: spinSlow 14s linear infinite;
  }
  .brand-mark img {
    height: 38px; width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.08));
  }
  .pulse-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background: #10b981; animation: pulseDot 1.8s ease-out infinite;
    display: inline-block;
  }
  .copilot-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    box-shadow: 0 6px 16px -6px rgba(99,102,241,.55);
  }

  /* ===== Form fields ===== */
  .field-input {
    display: block; width: 100%;
    padding: 12px 14px 12px 42px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    outline: none;
  }
  .field-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,.12);
  }
  .field-input::placeholder { color: #64748b; opacity: 1; }
  .field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px; pointer-events: none;
  }
  .field-input.no-icon { padding-left: 14px; }
  .field-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8;
    transition: color .2s ease;
    background: none; border: 0;
  }
  .field-eye:hover { color: #475569; }
  .field-label {
    display: block;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #475569;
    margin-bottom: 6px;
  }

  /* ===== Buttons ===== */
  .btn-grad {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 18px;
    border-radius: 12px;
    color: white; font-weight: 700; font-size: 14px;
    background: linear-gradient(135deg, #8C6CFF 0%, #6A9EFF 50%, #48E2D9 100%);
    box-shadow: 0 14px 32px -10px rgba(106,158,255,.55);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    border: 0;
  }
  .btn-grad:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -12px rgba(106,158,255,.65); }
  .btn-grad:disabled { opacity: .6; cursor: not-allowed; transform: none; }
  .btn-soft {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    color: #475569; font-weight: 600; font-size: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all .2s ease;
  }
  .btn-soft:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }

  /* ===== Social tile ===== */
  .social-tile {
    display: grid; place-items: center;
    padding: 11px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all .2s ease;
  }
  .social-tile:hover {
    border-color: #6366f1;
    background: linear-gradient(180deg, white, #f8faff);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(99,102,241,.35);
  }

  /* ===== Role picker ===== */
  .role-pill {
    cursor: pointer;
    text-align: center;
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: white;
    font-size: 13px; font-weight: 700;
    color: #475569;
    transition: all .2s ease;
  }
  .peer:checked ~ .role-pill {
    border-color: #6366f1;
    color: #4338ca;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(20,184,166,.08));
    box-shadow: 0 10px 22px -10px rgba(99,102,241,.45);
    transform: translateY(-1px);
  }
  .role-pill .role-icon {
    width: 28px; height: 28px;
    margin: 0 auto 6px;
    border-radius: 8px;
    display: grid; place-items: center;
    color: #6366f1;
    background: rgba(99,102,241,.1);
  }

  /* ===== Email pill (the "edit" identity row) ===== */
  .email-pill {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, white, #f8faff);
    border: 1px solid #e2e8f0;
  }
  .email-avatar {
    width: 36px; height: 36px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: white;
    background: linear-gradient(135deg, #8C6CFF 0%, #6A9EFF 50%, #48E2D9 100%);
    box-shadow: 0 8px 18px -6px rgba(106,158,255,.45);
    flex-shrink: 0;
  }
  .edit-link {
    color: #4f46e5; font-size: 12px; font-weight: 700;
    transition: color .2s ease;
  }
  .edit-link:hover { color: #6366f1; }

  /* ===== 2FA / OTP ===== */
  .otp-input {
    display: block; width: 100%;
    padding: 18px 14px;
    text-align: center;
    font-size: 28px;
    letter-spacing: .5em;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-weight: 800;
    background: linear-gradient(180deg, white, #f8faff);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    color: #0f172a;
    transition: all .2s ease;
    text-transform: uppercase;
  }
  .otp-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,.12);
    outline: none;
  }

  /* ===== Right-side marketing rail ===== */
  .marketing-card {
    position: relative;
    border-radius: 28px;
    padding: 36px;
    background:
      radial-gradient(900px 320px at 0% 0%, rgba(99,102,241,.32), transparent 60%),
      radial-gradient(800px 280px at 100% 100%, rgba(16,185,129,.28), transparent 60%),
      linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(15,23,42,.55);
    border: 1px solid rgba(255,255,255,.08);
  }
  .marketing-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 7s linear infinite;
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .brand-mark-lg {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -16px rgba(20,184,166,.35);
  }
  .brand-mark-lg::before {
    content: ""; position: absolute; inset: -22px;
    border-radius: 9999px;
    background: radial-gradient(closest-side, rgba(20,184,166,.4), transparent 70%);
    z-index: -1; pointer-events: none;
  }
  .brand-mark-lg::after {
    content: ""; position: absolute; inset: -7px;
    border-radius: 28px;
    border: 1.5px dashed rgba(20,184,166,.45);
    animation: spinSlow 16s linear infinite;
  }
  .brand-mark-lg img {
    height: 52px; width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  }
  .feature-tile {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    transition: background .2s ease, transform .2s ease;
  }
  .feature-tile:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-1px);
  }
  .feature-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(99,102,241,.4), rgba(20,184,166,.3));
    color: white;
    font-size: 14px;
    box-shadow: 0 8px 18px -8px rgba(99,102,241,.45);
  }
  .testimonial-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 22px;
  }
  .marketing-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    margin: 24px 0;
  }