.auth-shell {
    min-height: calc(100vh - 76px);
    padding: clamp(1rem, 3vw, 2.2rem);
    background:
      radial-gradient(circle at top right, rgba(255, 103, 0, 0.13), transparent 34rem),
      linear-gradient(135deg, #090909 0%, #171717 52%, #090909 100%);
    display: flex;
    align-items: center;
  }

  .auth-wrap {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
    gap: 1rem;
    align-items: stretch;
  }

  .auth-panel,
  .auth-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  }

  .auth-panel {
    padding: clamp(1.2rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    background:
      linear-gradient(135deg, rgba(255, 103, 0, 0.13), rgba(255, 255, 255, 0.025)),
      rgba(255, 255, 255, 0.035);
  }

  .auth-brand img {
    max-width: min(260px, 100%);
    max-height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 103, 0, 0.22));
  }

  .auth-kicker {
    color: #ff6700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .auth-panel h1,
  .auth-card h1 {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0.35rem 0 0.65rem;
  }

  .auth-panel p,
  .auth-card p,
  .auth-muted {
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.65;
  }

  .auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.25rem;
  }

  .auth-feature {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
  }

  .auth-feature i {
    color: #ff6700;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
  }

  .auth-card {
    padding: clamp(1.2rem, 3vw, 2rem);
  }

  .auth-card-head {
    margin-bottom: 1.2rem;
  }

  .auth-icon {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #ff6700;
    background: rgba(255, 103, 0, 0.12);
    margin-bottom: 0.8rem;
  }

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

  .auth-field {
    display: grid;
    gap: 0.42rem;
    margin-bottom: 0.9rem;
  }

  .auth-field label,
  .auth-check {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
    font-weight: 800;
  }

  .auth-field input,
  .auth-field select,
  .auth-code-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    padding: 0.65rem 0.9rem;
    outline: none;
  }

  .auth-field input:focus,
  .auth-field select:focus,
  .auth-code-input:focus {
    border-color: #ff6700;
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 0, 0.12);
  }

  .auth-password {
    display: flex;
  }

  .auth-password input {
    border-radius: 8px 0 0 8px;
  }

  .auth-icon-btn {
    width: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.045);
    color: #ff6700;
  }

  .auth-btn {
    min-height: 44px;
    width: 100%;
    border: 1px solid rgba(255, 103, 0, 0.35);
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6700, #ff8533);
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.72rem 1rem;
    box-shadow: 0 10px 24px rgba(255, 103, 0, 0.24);
  }

  .auth-btn:hover {
    color: #fff;
    transform: translateY(-1px);
  }

  .auth-link-row {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-link {
    color: #ff6700;
    text-decoration: none;
    font-weight: 800;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .auth-alert {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.82);
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
  }

  .auth-alert.error,
  .alert-error {
    border-color: rgba(255, 139, 150, 0.32);
    background: rgba(220, 53, 69, 0.12);
    color: #ffb2bb;
  }

  .auth-alert.success,
  .alert-success {
    border-color: rgba(126, 230, 160, 0.28);
    background: rgba(40, 167, 69, 0.12);
    color: #b9f2c9;
  }

  .auth-help {
    border: 1px solid rgba(255, 103, 0, 0.18);
    background: rgba(255, 103, 0, 0.08);
    border-radius: 8px;
    padding: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
  }

  .auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .auth-code-input {
    height: 56px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 900;
    padding: 0;
  }

  .auth-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9999;
  }

  .auth-loading-overlay.active {
    display: grid;
  }

  .auth-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 103, 0, 0.25);
    border-top-color: #ff6700;
    border-radius: 50%;
    animation: authSpin 0.9s linear infinite;
  }

  @keyframes authSpin {
    to { transform: rotate(360deg); }
  }

  @media (max-width: 991px) {
    .auth-shell {
      align-items: flex-start;
    }

    .auth-wrap {
      grid-template-columns: 1fr;
    }

    .auth-panel {
      min-height: auto;
    }
  }

  @media (max-width: 640px) {
    .auth-shell {
      padding: 0.85rem;
    }

    .auth-panel,
    .auth-card {
      padding: 1rem;
    }

    .auth-feature-grid,
    .auth-grid-2 {
      grid-template-columns: 1fr;
    }

    .auth-link-row {
      flex-direction: column;
      align-items: stretch;
    }

    .auth-link {
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.035);
    }

    .auth-code-grid {
      gap: 0.35rem;
    }

    .auth-code-input {
      height: 48px;
      font-size: 1.1rem;
    }
  }

  /* Premium login experience */
  .auth-login-premium {
    min-height: 100vh;
    padding: clamp(6.8rem, 10vw, 8.5rem) clamp(1rem, 4vw, 3rem) 4rem;
    position: relative;
    isolation: isolate;
    background:
      linear-gradient(90deg, rgba(5,5,5,.95), rgba(5,5,5,.74) 52%, rgba(5,5,5,.88)),
      url("../images/hero-mupenda-premium.60c1916492a6.png") center/cover fixed;
  }
  .auth-login-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(255,103,0,.13), transparent 27%);
  }
  .auth-login-premium .auth-wrap {
    width: min(1210px,100%);
    grid-template-columns: minmax(0,1.02fr) minmax(420px,.98fr);
    gap: 20px;
  }
  .auth-login-premium .auth-panel,
  .auth-login-premium .auth-card {
    overflow: hidden;
    border-color: rgba(255,255,255,.12);
    border-radius: 26px;
    background: rgba(13,13,13,.82);
    backdrop-filter: blur(22px);
    box-shadow: 0 32px 90px rgba(0,0,0,.5);
  }
  .auth-login-premium .auth-panel {
    min-height: 620px;
    padding: clamp(2rem,4vw,3.2rem);
    background: linear-gradient(145deg,rgba(60,28,10,.9),rgba(16,14,13,.91));
  }
  .auth-panel-topline,.auth-card-heading-row {
    display:flex;align-items:center;justify-content:space-between;gap:16px;
  }
  .auth-panel-topline { margin-bottom: 58px; color:rgba(255,255,255,.58);font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase; }
  .auth-panel-topline i { color:#ff6700;margin-right:6px; }
  .auth-login-premium .auth-brand img { max-width:min(285px,100%);max-height:100px; }
  .auth-login-premium .auth-panel h1 { margin-top:.65rem;font-size:clamp(2.4rem,4vw,4.2rem);line-height:1;letter-spacing:-.045em; }
  .auth-login-premium .auth-panel p { max-width:520px;font-size:1rem;line-height:1.8; }
  .auth-trust-line { display:flex;align-items:center;gap:9px;margin-top:25px;color:rgba(255,255,255,.66);font-size:.76rem; }
  .auth-live-dot { width:8px;height:8px;border-radius:50%;background:#5bd58a;box-shadow:0 0 0 5px rgba(91,213,138,.11); }
  .auth-login-premium .auth-feature { min-height:112px;padding:18px;border-radius:17px;background:rgba(4,4,4,.3); }
  .auth-login-premium .auth-feature strong,.auth-login-premium .auth-feature small { display:block; }
  .auth-login-premium .auth-feature strong { color:#fff;font-size:.8rem; }
  .auth-login-premium .auth-feature small { margin-top:4px;color:rgba(255,255,255,.48);font-size:.66rem; }
  .auth-login-premium .auth-card { padding:clamp(2rem,4vw,3.2rem); }
  .auth-login-premium .auth-icon { width:54px;height:54px;margin:0 0 30px;border:1px solid rgba(255,103,0,.26);border-radius:16px; }
  .auth-security-badge { align-self:flex-start;padding:8px 11px;border:1px solid rgba(91,213,138,.2);border-radius:99px;color:#70d899;background:rgba(91,213,138,.07);font-size:.68rem;font-weight:800; }
  .auth-login-premium .auth-card-head { margin-bottom:28px; }
  .auth-login-premium .auth-card h1 { margin:.6rem 0 .55rem;font-size:clamp(2rem,3vw,2.8rem);letter-spacing:-.035em; }
  .auth-login-premium .auth-field { margin-bottom:17px;gap:8px; }
  .auth-login-premium .auth-field input,.auth-login-premium .auth-field select { min-height:52px;padding:.75rem 1rem;border-radius:13px;background:rgba(0,0,0,.35); }
  .auth-login-premium .auth-password input { border-radius:13px 0 0 13px; }
  .auth-login-premium .auth-icon-btn { border-radius:0 13px 13px 0; }
  .auth-login-premium .auth-btn { min-height:54px;border-radius:14px;transition:.3s ease; }
  .auth-login-premium .auth-btn:hover { transform:translateY(-3px);box-shadow:0 16px 36px rgba(255,103,0,.34); }
  .auth-login-premium .auth-link-row { margin-top:18px;padding-top:18px; }
  .auth-privacy-note { margin:18px 0 0!important;text-align:center;color:rgba(255,255,255,.38)!important;font-size:.69rem!important; }
  .auth-privacy-note i { color:#ff6700;margin-right:5px; }

  [data-bs-theme="light"] .auth-login-premium {
    background: linear-gradient(90deg,rgba(247,244,240,.94),rgba(247,244,240,.82)),url("../images/hero-mupenda-premium.60c1916492a6.png") center/cover fixed;
  }
  [data-bs-theme="light"] .auth-login-premium .auth-panel { background:linear-gradient(145deg,#fff0e4,#fff);border-color:#e4dcd4; }
  [data-bs-theme="light"] .auth-login-premium .auth-card { background:rgba(255,255,255,.92);border-color:#e4dcd4; }
  [data-bs-theme="light"] .auth-login-premium :is(.auth-panel h1,.auth-card h1,.auth-feature strong,.auth-field label,.auth-check) { color:#1b1714; }
  [data-bs-theme="light"] .auth-login-premium :is(.auth-panel p,.auth-card p,.auth-muted,.auth-trust-line) { color:#655e57; }
  [data-bs-theme="light"] .auth-login-premium .auth-feature { background:rgba(255,255,255,.72);border-color:#e1d8d0; }
  [data-bs-theme="light"] .auth-login-premium .auth-feature small { color:#766e67; }
  [data-bs-theme="light"] .auth-login-premium .auth-field input,
  [data-bs-theme="light"] .auth-login-premium .auth-field select { color:#1b1714;background:#faf8f6;border-color:#d9d2cb; }
  [data-bs-theme="light"] .auth-login-premium .auth-icon-btn { background:#f1ece7;border-color:#d9d2cb; }
  [data-bs-theme="light"] .auth-login-premium .auth-link-row { border-color:#e3dcd5; }
  [data-bs-theme="light"] .auth-login-premium .auth-privacy-note { color:#77706a!important; }
  @media(max-width:991px){.auth-login-premium .auth-wrap{grid-template-columns:1fr}.auth-login-premium .auth-panel{min-height:auto}.auth-panel-topline{margin-bottom:35px}}
  @media(max-width:640px){.auth-login-premium{padding:6rem .85rem 2.5rem}.auth-login-premium .auth-panel,.auth-login-premium .auth-card{border-radius:20px}.auth-login-premium .auth-feature-grid{grid-template-columns:repeat(3,1fr)}.auth-login-premium .auth-feature{min-height:95px;padding:13px}.auth-login-premium .auth-feature small{display:none}.auth-security-badge{display:none}}
