/* Shared layout for SparKPI account pages: sign in, sign up, 2FA, password reset. */
  body { min-height: 100vh; display: flex; }
  .split { display: flex; width: 100%; min-height: 100vh; }

  .brand-panel {
    position: relative;
    flex: 1.1;
    color: #FBF7FF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    overflow: hidden;
    margin: 20px;
    border-radius: var(--r-lg);
    background: var(--glass-dark-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-dark-border);
    box-shadow: var(--shadow-lg);
  }

  .brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
  .logo-chip { display:inline-flex; align-items:center; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,0.86); box-shadow: 0 8px 24px rgba(30,10,90,0.28), inset 0 1px 0 #fff; }
  .brand-top .word { font-family: var(--display); font-weight: 800; font-size: 22px; color: #FBF7FF; }

  .brand-mid { position: relative; z-index: 1; max-width: 460px; }
  .brand-mid .kicker {
    display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--lemon); margin-bottom: 18px;
  }
  .brand-mid h1 { font-family: 'Montserrat', 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.04; letter-spacing: -0.015em; text-transform: uppercase; }
  .brand-mid h1 em { font-style: normal; background: linear-gradient(100deg, var(--heather), var(--lemon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .brand-mid p { font-family: var(--body); font-size: 15.5px; line-height: 1.6; color: rgba(251,247,255,0.75); margin-top: 18px; max-width: 400px; }

  .brand-proof {
    position: relative; z-index: 1;
    display: flex; gap: 14px; margin-top: 40px;
  }
  .proof-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--r-md);
    padding: 16px 18px;
    backdrop-filter: blur(6px);
    flex: 1;
  }
  .proof-card .n { font-family: var(--display); font-size: 24px; font-weight: 800; color: #fff; }
  .proof-card .l { font-size: 11.5px; color: rgba(251,247,255,0.65); font-weight: 700; margin-top: 2px; }

  .brand-bottom { position: relative; z-index: 1; font-size: 12.5px; color: rgba(251,247,255,0.55); }

  .form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
  }
  .form-wrap {
    width: 100%; max-width: 380px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
  }
  .form-wrap .eyebrow { margin-bottom: 10px; display: block; }
  .form-wrap h2 { font-size: 27px; margin-bottom: 6px; }
  .form-wrap .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }

  .role-row { display: flex; gap: 8px; margin-bottom: 26px; }
  .role-pill {
    flex: 1; text-align: center; padding: 9px 6px;
    border-radius: var(--r-pill); border: 1.5px solid var(--glass-border);
    font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
    cursor: pointer; transition: all 0.15s ease; background: rgba(255,255,255,0.4);
  }
  .role-pill.active { background: var(--lemon); color: var(--lemon-text); border-color: transparent; font-weight: 800; box-shadow: 0 4px 14px rgba(228,255,59,0.35); }

  .field { margin-bottom: 16px; }
  .field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
  .field .input-wrap { position: relative; }
  .field input {
    width: 100%; height: 50px; border-radius: var(--r-md);
    border: 1.5px solid var(--glass-border); background: rgba(255,255,255,0.55);
    padding: 0 44px 0 16px; font-size: 14.5px; font-family: var(--body);
    color: var(--ink); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .field input:focus { border-color: var(--heather); box-shadow: 0 0 0 4px rgba(152,126,214,0.18); }
  .field .input-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }

  .row-between { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 26px; }
  .remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
  .remember input { accent-color: var(--heather); width: 15px; height: 15px; }
  .forgot { font-size: 13px; font-weight: 700; color: var(--heather-deep); }
  .forgot:hover { text-decoration: underline; }

  .form-wrap .btn-accent { width: 100%; height: 52px; font-size: 15.5px; }

  .divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--ink-faint); font-size: 12px; font-weight: 700; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }

  .sso-row { display: flex; gap: 10px; }
  .sso-btn {
    flex: 1; height: 48px; border-radius: var(--r-md); border: 1.5px solid var(--glass-border);
    background: rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--ink); gap: 8px; transition: border-color .15s;
  }
  .sso-btn:hover { border-color: var(--heather); }

  .switch-line { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }
  .switch-line a { font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--lemon); }

  @media (max-width: 920px) {
    .brand-panel { display: none; }
    .form-panel { padding: 32px 20px; }
  }

  /* pixel type + scramble (headline, kicker, primary button only; the form stays plain for readability) */
  .brand-mid .kicker { font-family: 'Montserrat', 'Arial Black', Arial, sans-serif; font-weight: 800; font-size: 11.5px; letter-spacing: 0.18em; }
  .brand-mid h1 { font-family: 'Montserrat', 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.04; letter-spacing: -0.015em; text-transform: uppercase; }
  .brand-mid h1 .ln { display: block; }
  .brand-mid h1 em.ln .dud { -webkit-text-fill-color: var(--lemon); }
  .form-wrap .btn-accent { font-family: 'Montserrat', 'Arial Black', Arial, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
  .back-home { text-align: center; margin-top: 12px; font-size: 12.5px; }
  .back-home a { color: var(--ink-soft); font-weight: 700; }
  .back-home a:hover { color: var(--heather-deep); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dud { color: var(--lemon); opacity: 0.9; }
  [data-scr] { transition: opacity .5s ease, transform .5s ease; }
  .scr-pending { opacity: 0; transform: translateY(12px); }
  .scr-in { opacity: 1; transform: none; }


/* --- account-page additions --- */
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(152,126,214,0.12); margin-bottom: 22px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.seg button.active { background: var(--lemon); color: var(--lemon-text); box-shadow: 0 4px 14px rgba(228,255,59,0.35); }
.seg-note { font-size: 12.5px; color: var(--ink-faint); margin: -12px 0 18px; }
.btn-google { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; border: 1.5px solid var(--line, rgba(152,126,214,0.3)); background: rgba(255,255,255,0.7); font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.btn-google:hover { border-color: var(--heather); }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; margin: 0 0 16px; display: none; }
.notice.show { display: block; }
.notice.error { background: rgba(196,69,69,0.10); color: #8f2c2c; border: 1px solid rgba(196,69,69,0.28); }
.notice.ok { background: rgba(56,142,82,0.10); color: #23663a; border: 1px solid rgba(56,142,82,0.28); }
.notice.info { background: rgba(152,126,214,0.12); color: var(--ink); border: 1px solid rgba(152,126,214,0.3); }
.notice button.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; cursor: pointer; }
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
.field input.code { letter-spacing: 0.4em; font-family: var(--mono, monospace); font-size: 20px; text-align: center; }
.qr-box { display: flex; gap: 18px; align-items: center; margin: 6px 0 18px; }
.qr-box img { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 8px; flex: none; }
.secret { font-family: var(--mono, monospace); font-size: 12.5px; word-break: break-all; background: rgba(152,126,214,0.10); padding: 8px 10px; border-radius: 8px; }
.steps { padding-left: 18px; margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.btn-accent[disabled] { opacity: 0.6; cursor: wait; }
.hidden { display: none !important; }
@media (max-width: 900px) { .brand-panel { display: none; } .qr-box { flex-direction: column; align-items: flex-start; } }
.auth-toggle { position: fixed; top: 18px; right: 20px; z-index: 50; }
.auth-logo { margin-bottom: 22px; }
.auth-callback-center .auth-logo { display: flex; justify-content: center; }
.logo-chip .brand-logo .bl-word { color: #FBF7FF; }
.logo-chip .brand-logo .bl-word span { color: var(--lemon); }
