/* Sign-in, register, password and invite pages: dark art panel with a live report card.
   Loads after chromatic.css and brand.css. */

.signin-art {
  background: #0b0b0b;
  background-image: none;
  isolation: isolate;
}
.signin-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent 85%);
}
.signin-art::after {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -180px; top: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216,255,62,0.26), rgba(123,224,166,0.10) 60%, transparent);
  animation: pf-drift 16s ease-in-out infinite alternate;
}
@keyframes pf-drift { to { transform: translate(-80px, 60px) scale(1.1); } }
/* The art panel holds the report card and the promise. The promise sits at the bottom; the card's auto top
   margin and the promise's share the free space, so the card stays centred in the area above the promise
   at every screen height. */
.signin-art { gap: 36px; }
.signin-promise { margin-top: auto; }

/* Form-side top bar, like the site header: the logo plus one small action. */
.signin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; margin-bottom: 40px; }
.signin-logo .brand-logo { height: 26px; }
.signin-topbar-note { color: #666662; font-size: 13px; }

.signin-promise h1 { letter-spacing: -0.01em; }
.signin-promise p { color: #b9b9b3; }
.signin-trust { margin-top: 18px; }

.auth-visual {
  position: relative; align-self: center; width: min(420px, 100%); margin: auto 0 0;
  animation: pf-float 8s ease-in-out infinite;
}
@keyframes pf-float { 50% { transform: translateY(-10px); } }
.auth-brief {
  padding: 20px; border: 1px solid rgba(255,255,255,0.12); border-radius: 22px;
  background: rgba(22, 22, 22, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  color: #e9e9e4; font-size: 13px;
}
.auth-brief header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.auth-brief header b { display: block; color: #fff; font-weight: 600; }
.auth-brief header small { color: #8c8c86; font-size: 12px; }
.auth-brief header em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: 11.5px; font-style: normal; font-weight: 600; }
.auth-brief header em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.auth-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--lime), var(--mint)); color: #0b0b0b; font-size: 12px; font-weight: 700; }
.auth-brief section { display: grid; gap: 7px; padding-top: 14px; }
.auth-brief section small { color: #7d7d77; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-line { height: 9px; border-radius: 99px; background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 40%, #2a2a2a 80%); background-size: 200% 100%; animation: pf-shimmer 1.6s linear infinite; }
.auth-line.w1 { width: 92%; } .auth-line.w2 { width: 76%; } .auth-line.w3 { width: 60%; } .auth-line.w4 { width: 84%; }
@keyframes pf-shimmer { to { background-position: -200% 0; } }
.auth-line.lit { background: linear-gradient(90deg, rgba(216,255,62,0.85), rgba(155,225,93,0.6)); animation: pf-lit 6s ease-in-out infinite; }
@keyframes pf-lit { 0%, 100% { opacity: 0.35; } 40%, 70% { opacity: 1; } }
.auth-sources { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; }
.auth-sources span { padding: 4px 9px; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; color: #b9b9b3; font-size: 11px; }
.auth-sources span:first-child { border-color: rgba(216,255,62,0.5); color: var(--lime); }
.auth-step {
  position: absolute; z-index: 2; right: -14px; top: -16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; background: var(--lime); color: #0b0b0b; font-size: 12px; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(216,255,62,0.6);
}
.auth-step i { width: 12px; height: 12px; border: 2px solid #0b0b0b; border-right-color: transparent; border-radius: 50%; animation: pf-spin 0.9s linear infinite; }

/* Invite page uses the older hero layout */
.invite-page .auth-hero { position: relative; overflow: hidden; isolation: isolate; background: #0b0b0b; background-image: none; }
.invite-page .auth-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.2px); background-size: 24px 24px;
}
.invite-page .auth-hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; bottom: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216,255,62,0.26), transparent);
}
.invite-page .auth-hero .eyebrow { color: var(--lime); }

@media (max-width: 760px) {
  .auth-visual { display: none; }
  .signin-art::after { width: 380px; height: 380px; right: -140px; top: -60px; }
  /* Phones: the logo and form come first, then the art panel, sized to its content. */
  .signin-board { display: flex; flex-direction: column; }
  .signin-panel { order: -1; min-height: auto; padding-bottom: 36px; }
  .signin-art { min-height: auto; gap: 30px; padding-top: 26px; padding-bottom: 30px; }
  .signin-topbar { margin-bottom: 36px; }
  .signin-logo .brand-logo { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual, .auth-line, .auth-step i, .signin-art::after { animation: none !important; }
}

/* Register page: the one-line product-news notice under both sign-up options. */
.marketing-notice { margin: -6px 0 14px; color: #6d6d68; font-size: 12px; line-height: 17px; text-align: center; text-wrap: balance; }
