  /* ---------- Auth layout ---------- */
  .auth-shell { max-width: 1260px; margin: 28px auto 0; padding: 0 24px; }
  .auth-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 26px; align-items: stretch; }

  .auth-visual {
    position: relative; border-radius: 30px; overflow: hidden; min-height: 620px;
    display: flex; flex-direction: column; justify-content: space-between; padding: 38px;
    color: #fff; box-shadow: var(--shadow-lg); isolation: isolate;
    background: linear-gradient(150deg, #4A2C1B 0%, #6B3417 45%, #8E4A18 100%);
  }
  .auth-visual img.visual-photo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0.42; z-index: -2; filter: saturate(1.05);
  }
  .auth-visual::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(circle at 78% 12%, rgba(245, 166, 35, 0.34), transparent 45%),
      linear-gradient(180deg, rgba(45, 31, 20, 0.42) 0%, rgba(45, 31, 20, 0.72) 62%, rgba(36, 23, 8, 0.92) 100%);
  }
  .visual-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .eyebrow-light {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 50px;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px); font-size: 0.71rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #FFE2AE;
  }
  .visual-body { position: relative; z-index: 2; }
  .visual-body h1 { color: #fff; font-size: clamp(2rem, 3.1vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 16px; }
  .visual-body h1 em { font-family: var(--font-editorial); font-style: italic; font-weight: 400; color: var(--marigold); }
  .visual-body p { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; max-width: 400px; line-height: 1.7; }
  .visual-points { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
  .visual-points li { display: flex; align-items: center; gap: 11px; font-size: 0.87rem; color: rgba(255, 255, 255, 0.9); }
  .visual-points .vp-ico {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
    background: rgba(245, 166, 35, 0.18); border: 1px solid rgba(245, 166, 35, 0.34); color: var(--marigold);
  }
  .visual-points .vp-ico .icon { width: 15px; height: 15px; }
  .visual-quote {
    position: relative; z-index: 2; margin-top: 30px; padding: 20px 22px; border-radius: 18px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  }
  .visual-quote blockquote { font-family: var(--font-editorial); font-style: italic; font-size: 1rem; line-height: 1.55; color: #fff; }
  .visual-quote .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
  .visual-quote .who b { color: #fff; font-weight: 600; }
  .visual-quote .avatars { display: flex; }
  .visual-quote .avatars span {
    width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, var(--marigold), var(--rust)); margin-left: -8px;
    display: grid; place-items: center; font-size: 0.6rem; font-weight: 700; color: #fff;
  }
  .visual-quote .avatars span:first-child { margin-left: 0; }

  /* ---------- Form card ---------- */
  .auth-card {
    background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(26px) saturate(140%);
    border: 1px solid rgba(212, 175, 55, 0.18); border-radius: 30px; padding: 34px 38px 30px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  }
  .auth-card::before {
    content: ''; position: absolute; top: -120px; right: -90px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 65%); pointer-events: none;
  }
  .auth-mark { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.03em; margin-bottom: 22px; }
  .auth-mark .seal {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--rust), var(--mustard)); box-shadow: 0 6px 16px rgba(194, 90, 42, 0.3);
  }
  .auth-mark .seal .icon { width: 17px; height: 17px; }
  .auth-mark em { font-family: var(--font-editorial); font-style: italic; font-weight: 400; color: var(--mustard); }

  .auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(249, 244, 232, 0.9); border: 1px solid var(--line); border-radius: 50px; padding: 4px; margin-bottom: 26px; }
  .auth-tabs button {
    position: relative; z-index: 2; border: none; background: none; cursor: pointer; padding: 10px 8px;
    border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--espresso); transition: color 0.3s ease;
  }
  .auth-tabs button[aria-selected="true"] { color: #fff; }
  .auth-tabs .tab-pill {
    position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: 50px; background: linear-gradient(135deg, var(--rust), var(--mustard));
    box-shadow: 0 6px 16px rgba(194, 90, 42, 0.28); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .auth-tabs[data-mode="signup"] .tab-pill { transform: translateX(100%); }

  .step { display: none; animation: fadeUp 0.45s ease both; }
  .step.active { display: block; }
  .step h2 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); margin-bottom: 8px; }
  .step .sub { font-size: 0.89rem; color: var(--espresso); opacity: 0.8; margin-bottom: 24px; line-height: 1.6; }
  .step .sub b { color: var(--rust); font-weight: 600; }
  .wide { width: 100%; }
  .btn-primary.wide { padding: 16px 26px; }
  .auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: rgba(61, 27, 36, 0.42); font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
  .auth-or::before, .auth-or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
  .social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .social-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-radius: 14px;
    background: #fff; border: 1px solid rgba(61, 27, 36, 0.12); font-size: 0.83rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease; color: var(--espresso);
  }
  .social-btn:hover { border-color: rgba(245, 166, 35, 0.5); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--rust); }
  .legal { margin-top: 22px; font-size: 0.74rem; color: rgba(61, 27, 36, 0.55); line-height: 1.6; text-align: center; }
  .legal a { color: var(--rust); font-weight: 600; text-decoration: none; }
  .secure-line { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: 0.73rem; color: rgba(61, 27, 36, 0.5); }
  .secure-line .icon { width: 13px; height: 13px; }

  /* ---------- OTP ---------- */
  .otp-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
  .otp-head .back {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
    display: grid; place-items: center; cursor: pointer; color: var(--espresso); transition: all 0.22s ease; flex: none;
  }
  .otp-head .back:hover { border-color: rgba(245, 166, 35, 0.5); color: var(--rust); transform: translateX(-2px); }
  .otp-mail { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 50px; background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.2); font-size: 0.8rem; font-weight: 600; color: var(--espresso); margin-bottom: 20px; max-width: 100%; }
  .otp-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .otp-row { display: flex; gap: 9px; margin-bottom: 8px; }
  .otp-row input {
    width: 100%; height: 62px; text-align: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    border-radius: 16px; border: 1.5px solid rgba(61, 27, 36, 0.14); background: rgba(255, 255, 255, 0.92);
    padding: 0; transition: all 0.2s ease; color: var(--charcoal);
  }
  .otp-row input:focus { border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); transform: translateY(-1px); }
  .otp-row input.filled { border-color: rgba(245, 166, 35, 0.5); background: #fff; }
  .otp-row.error { animation: shake 0.42s ease; }
  .otp-row.error input { border-color: var(--rust); background: rgba(194, 90, 42, 0.05); }
  @keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
  .otp-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; font-size: 0.8rem; flex-wrap: wrap; }
  .otp-meta .timer { color: var(--espresso); opacity: 0.7; display: inline-flex; align-items: center; gap: 6px; }
  .resend-btn { border: none; background: none; color: var(--rust); font-weight: 700; font-size: 0.8rem; cursor: pointer; padding: 0; }
  .resend-btn[disabled] { color: rgba(61, 27, 36, 0.4); cursor: not-allowed; }
  .demo-note {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-top: 16px;
    background: rgba(255, 245, 230, 0.85); border: 1px dashed rgba(212, 175, 55, 0.45); font-size: 0.79rem; color: var(--espresso);
    flex-wrap: wrap;
  }
  .demo-note .icon { color: var(--mustard); width: 15px; height: 15px; }
  .demo-note b { letter-spacing: 0.16em; font-family: var(--font-display); font-size: 0.95rem; color: var(--rust); }
  .demo-note button { margin-left: auto; border: none; background: rgba(194, 90, 42, 0.1); color: var(--rust); font-weight: 700; font-size: 0.72rem; padding: 6px 12px; border-radius: 50px; cursor: pointer; }
  .otp-error { font-size: 0.78rem; color: var(--rust); font-weight: 600; margin-bottom: 14px; display: none; }
  .otp-error.show { display: block; }

  /* ---------- Success ---------- */
  .done-wrap { text-align: center; padding: 10px 0 4px; }
  .done-check {
    width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.18), rgba(194, 90, 42, 0.14));
    border: 1px solid rgba(212, 175, 55, 0.3); animation: popIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  }
  .done-check .inner {
    width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--rust), var(--mustard)); box-shadow: 0 10px 26px rgba(194, 90, 42, 0.34);
  }
  .done-check .icon { width: 28px; height: 28px; stroke-width: 2.4; }
  @keyframes popIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
  .done-wrap h2 { margin-bottom: 10px; }
  .done-wrap p { font-size: 0.9rem; color: var(--espresso); opacity: 0.82; line-height: 1.65; margin: 0 auto 22px; max-width: 340px; }
  .done-actions { display: grid; gap: 10px; }
  .done-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
  .done-perks div { padding: 12px 8px; border-radius: 14px; background: rgba(249, 244, 232, 0.85); border: 1px solid var(--line-soft); font-size: 0.7rem; font-weight: 600; color: var(--espresso); display: grid; gap: 6px; justify-items: center; letter-spacing: 0.02em; }
  .done-perks .icon { color: var(--rust); width: 17px; height: 17px; }

  /* ---------- Trust strip ---------- */
  .auth-trust { max-width: 1260px; margin: 30px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .auth-trust .t-item { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
  .auth-trust .t-item .icon { color: var(--rust); width: 19px; height: 19px; }
  .auth-trust .t-item b { display: block; font-size: 0.82rem; font-family: var(--font-body); font-weight: 600; }
  .auth-trust .t-item span { font-size: 0.73rem; color: rgba(61, 27, 36, 0.55); }

  @media (max-width: 1000px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-visual { min-height: 300px; padding: 26px; }
    .visual-quote { display: none; }
    .visual-points { grid-template-columns: 1fr 1fr; display: grid; margin-top: 18px; }
  }
  @media (max-width: 720px) {
    .auth-shell { margin-top: 16px; padding: 0 14px; }
    .auth-card { padding: 26px 20px 24px; border-radius: 24px; }
    .auth-visual { border-radius: 24px; min-height: 230px; }
    .visual-points { display: none; }
    .otp-row { gap: 6px; }
    .otp-row input { height: 54px; font-size: 1.2rem; border-radius: 13px; }
    .auth-trust { grid-template-columns: 1fr 1fr; padding: 0 14px; margin-top: 20px; }
    .auth-trust .t-item { padding: 12px 14px; }
    .done-perks { grid-template-columns: 1fr 1fr 1fr; }
  }
