/* Auth Center - account / consent / installer layout (v2.0) */
.auth-shell { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 100dvh; }

/* ---------- brand panel ---------- */
.auth-aside { position: relative; overflow: hidden; color: #eaf4f1;
  background: radial-gradient(120% 90% at 0% 0%, #1d6b5e 0%, rgba(29, 107, 94, 0) 62%),
              radial-gradient(100% 90% at 100% 100%, #0b3d3c 0%, rgba(11, 61, 60, 0) 58%),
              linear-gradient(150deg, #103b36, #0b2927); }
.auth-aside::before { content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(140deg, #000 10%, transparent 78%); }
.auth-aside::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -130px;
  border-radius: 50%; background: rgba(90, 211, 187, .13); filter: blur(24px); }
.aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px;
  min-height: 100%; padding: 38px clamp(28px, 4vw, 56px) 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; width: 42px; height: 42px; color: #7fe3c9; }
.brand-mark svg { width: 42px; height: 42px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.25; }
.brand-word b { font-size: 16px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.brand-word small { font-size: 11px; letter-spacing: .1em; color: rgba(234, 244, 241, .62); }
.aside-body { margin: auto 0; max-width: 470px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #8ce6ce; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.aside-body h2 { margin-top: 18px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.18;
  letter-spacing: -.035em; font-weight: 700; color: #fff; }
.aside-body > p { margin-top: 18px; max-width: 42ch; font-size: 14.5px; line-height: 1.8;
  color: rgba(234, 244, 241, .72); }
.feature-list { display: grid; gap: 12px; margin-top: 34px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(234, 244, 241, .9); }
.feature-list svg { width: 18px; height: 18px; padding: 9px; box-sizing: content-box; border-radius: 11px;
  color: #8ce6ce; background: rgba(127, 227, 201, .12); border: 1px solid rgba(127, 227, 201, .2); }
.aside-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px;
  color: rgba(234, 244, 241, .58); }
.secure-line { display: inline-flex; align-items: center; gap: 7px; }
.secure-line svg { width: 14px; height: 14px; }

/* ---------- form panel ---------- */
.auth-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.auth-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 20px 30px; }
.auth-main .mobile-brand { display: none; }
.auth-main .mobile-brand .brand-mark { color: var(--primary); }
.auth-main .mobile-brand .brand-word b { color: var(--ink); }
.auth-main .mobile-brand .brand-word small { color: var(--muted); }
.auth-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 28px 44px; }
.auth-card { width: 100%; max-width: 428px; padding: 34px 32px 32px; border: 1px solid var(--line);
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md);
  animation: card-in .5s var(--ease) both; }
.auth-card.is-wide { max-width: 520px; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card-head { margin-bottom: 24px; }
.card-head .kicker { margin-bottom: 8px; }
.card-head h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.03em; font-weight: 700; }
.card-head .sub { margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.auth-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; font-size: 12px; color: var(--muted); }
.auth-foot span { display: inline-flex; align-items: center; gap: 6px; }
.auth-foot svg { width: 13px; height: 13px; }
.auth-foot .sep { opacity: .5; }

/* ---------- page-specific blocks ---------- */
.notice-block { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.notice-block b { color: var(--ink); word-break: break-all; }
.mail-mark { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  margin-bottom: 18px; border-radius: 18px; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-line); }
.mail-mark svg { width: 27px; height: 27px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.link-row.split { justify-content: space-between; }
.link-row a { font-weight: 600; }
.form-note { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }

/* consent */
.identity-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.identity-chip .avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; }
.identity-chip small { display: block; font-size: 11.5px; color: var(--muted); }
.identity-chip b { font-size: 13.5px; word-break: break-all; }
.app-ask { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; }
.app-ask .app-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); background: var(--surface-3); color: var(--primary); }
.app-ask b { font-size: 15px; }
.app-ask small { display: block; font-size: 12px; color: var(--muted); }
.scope-list { display: grid; gap: 2px; margin: 6px 0 0; }
.scope-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.scope-list li:last-child { border-bottom: 0; }
.scope-list svg { width: 17px; height: 17px; margin-top: 2px; color: var(--primary); }
.consent-trust { margin-top: 18px; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--info-bg); color: var(--info); font-size: 12.5px; line-height: 1.6; }
.stack-actions { display: grid; gap: 10px; margin-top: 22px; }

/* profile */
.identity-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface-2); }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.identity-row span { color: var(--muted); }
.identity-row b { font-weight: 600; word-break: break-all; }

/* installer */
.install-steps { display: grid; gap: 8px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-topbar { justify-content: space-between; padding: 16px 20px; }
  .auth-main .mobile-brand { display: inline-flex; }
  .auth-main .mobile-brand .brand-mark { width: 34px; height: 34px; }
  .auth-main .mobile-brand .brand-mark svg { width: 34px; height: 34px; }
  .auth-content { padding: 24px 20px 48px; justify-content: flex-start; }
  .auth-card { max-width: 480px; padding: 30px 26px; }
  .auth-foot { margin-top: 20px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 26px 20px; border-radius: var(--r-lg); }
  .card-head h1 { font-size: 24px; }
  .auth-content { padding: 12px 14px 36px; }
  .auth-topbar { padding: 14px; }
  .lang-current { display: none; }
}
