/* Account pages - built on the siriusly.ai design system.
   base.html links css/design-system.css ahead of this file, so every token
   used here comes from there. No local palette. */


.lg-hidden { display: none !important; }

/* The nav pill (.sr-nav, navbar.css) sits in normal flow above .lg-page and
   reserves its own 78px (16px margin + 62px pill height) there - same
   constant landing.css's hero documents. Sizing this to a full 100vh on top
   of that pushed the grid a page-length past one viewport, so
   .lg-visual-side's vertically-centered content (flex align-items:center)
   centered against that overshoot instead of the space actually on screen,
   leaving a bare gap above it exactly the height of the nav. */
.lg-page {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
/* No wash of its own: the auth pages show the shared Ember corner backdrop
   that <body> carries (see tokens/base.css). */

/* Form side */
.lg-form-side {
  position: relative;
  z-index: 2;
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 78px);
}
.lg-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0;
}

/* Eyebrow */
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  background: var(--surface-hover);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  margin-bottom: 22px;
}
.lg-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--ring-focus);
  animation: lgPulseDot 2s ease-out infinite;
}
@keyframes lgPulseDot {
  0%, 100% { box-shadow: var(--ring-focus); }
  50% { box-shadow: 0 0 0 6px rgba(46, 122, 40, 0.05); }
}

/* Headline */
.lg-headline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--text-strong);
}
.lg-headline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Subhead */
.lg-subhead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 0 28px;
}

/* Alert area */
.lg-alerts { margin-bottom: 16px; }
.lg-alerts:empty { display: none; }
.lg-alerts .alert {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  padding: 11px 38px 11px 14px;
  border-radius: 12px;
  margin: 0 0 10px;
  gap: 10px;
  position: relative;
  box-shadow: 0 1px 0 rgba(20, 18, 16, 0.02);
}
.lg-alerts .alert .bi { width: 18px !important; height: 18px !important; flex-shrink: 0; margin-right: 0 !important; }
.lg-alerts .alert > div { flex: 1; min-width: 0; }
.lg-alerts .alert .btn-close {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px;
  padding: 0; opacity: 0.55;
  background-size: 10px 10px;
}
.lg-alerts .alert .btn-close:hover { opacity: 1; }
.lg-alerts .alert-danger {
  color: var(--status-danger);
  background: rgba(217, 119, 87, 0.10);
  border: 1px solid rgba(177, 74, 40, 0.25);
}
.lg-alerts .alert-danger .bi { color: var(--status-danger); }
.lg-alerts .alert-success {
  color: var(--status-success);
  background: rgba(46, 122, 40, 0.10);
  border: 1px solid rgba(46, 122, 40, 0.25);
}
.lg-alerts .alert-success .bi { color: var(--color-primary); }

/* Invite token: a section of its own above the signup options, since it gates
   both of them. Panelled and set apart so it does not read as a stray field
   belonging to the Google button underneath it. */
.lg-invite {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--surface-hover);
}
.lg-invite-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lg-invite-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Options */
.lg-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-strong);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  width: 100%;
}
.lg-option:hover {
  transform: translateY(-1px);
  border-color: var(--text-strong);
  box-shadow: 0 12px 28px rgba(26, 24, 22, 0.08);
  color: var(--text-strong);
  text-decoration: none;
}
.lg-option:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.lg-option.active {
  border-color: var(--text-strong);
  box-shadow: 0 16px 36px rgba(26, 24, 22, 0.10);
}

.lg-option .lg-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.lg-option:hover .lg-ico { background: var(--color-primary); border-color: var(--color-primary); color: var(--text-on-brand); }

.lg-option .lg-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.lg-option .lg-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.lg-option .lg-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.lg-option .lg-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}
.lg-option:hover .lg-arrow { background: var(--color-accent); color: var(--text-on-brand); transform: translateX(3px) rotate(-3deg); }

/* Last-used badge */
.lg-last-used {
  position: absolute;
  top: -10px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-primary-soft);
  color: var(--orange-300);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 14px rgba(26, 24, 22, 0.18);
  z-index: 3;
}
.lg-last-used .lg-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 0 2px rgba(31, 138, 74, 0.35);
  animation: lgPulseGreen 1.8s ease-out infinite;
}
@keyframes lgPulseGreen {
  0%, 100% { box-shadow: 0 0 0 2px rgba(31, 138, 74, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(31, 138, 74, 0.05); }
}

/* Email form (expanded) */
.lg-email-form {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--surface-hover);
  animation: lgSlideDown 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-origin: top center;
}
.lg-email-form.lg-hidden { display: none; }
@keyframes lgSlideDown {
  from { opacity: 0; transform: translateY(-8px) scaleY(0.96); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

.lg-field-grp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-field-grp label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lg-field-grp label a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
}
.lg-field-grp label a:hover { text-decoration: underline; }
.lg-field-grp label .lg-optional {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 6px;
}

.lg-field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lg-field:focus-within {
  border-color: var(--text-strong);
  box-shadow: 0 0 0 4px rgba(26, 24, 22, 0.06);
}
.lg-field .lg-input-icon {
  width: 40px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.lg-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  padding: 0 14px 0 0;
  height: 44px;
  outline: none;
  letter-spacing: -0.005em;
}
.lg-field input::placeholder { color: var(--text-muted); }
.lg-toggle-pw {
  margin-right: 6px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.lg-toggle-pw:hover { background: var(--surface-hover); color: var(--text-strong); }

.lg-submit {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  box-shadow: 0 12px 28px rgba(26, 24, 22, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lg-submit .lg-arrow-chip {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--text-on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.lg-submit:hover {
  transform: translateY(-2px);
  background: var(--color-primary-hover);
  box-shadow: 0 18px 36px rgba(26, 24, 22, 0.24), inset 0 1px 0 rgba(255,255,255,0.10);
}
.lg-submit:hover .lg-arrow-chip { transform: translateX(3px) rotate(-3deg); }

.lg-alt-actions {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lg-alt-actions a { color: var(--color-accent); text-decoration: none; }
.lg-alt-actions a:hover { text-decoration: underline; }

/* Footer */
.lg-foot {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-body);
}
.lg-foot a {
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--text-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lg-foot a:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* Visual side */
.lg-visual-side {
  position: relative;
  z-index: 1;
  /* Translucent, not an opaque surface: the panel reads as a lift off the page
     the way the design's own panels do, and the backdrop's bloom carries
     through it instead of being covered by it. */
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 56px;
  overflow: hidden;
  border-left: 1px solid var(--border-default);
}
body.login-page .lg-hero-stack { margin-top: 80px; }
.lg-visual-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 24, 22, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 24, 22, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  pointer-events: none;
}
.lg-visual-side::after {
  display: none;
}

.lg-hero-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Quote card */
.lg-quote-card {
  position: relative;
  margin: 0;
  padding: 36px 32px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(26, 24, 22, 0.08);
}
.lg-quote-card blockquote::before,
.lg-quote-card blockquote::after {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--color-accent);
  font-size: 2.2em;
  line-height: 0;
  vertical-align: -0.45em;
  user-select: none;
  pointer-events: none;
}
.lg-quote-card blockquote::before {
  content: '\201C';
  margin-right: 0.05em;
  vertical-align: -0.38em;
}
.lg-quote-card blockquote::after {
  content: '\201D';
  margin-left: 0.05em;
}
.lg-quote-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  background: var(--surface-hover);
  border: 1px solid var(--border-default);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lg-quote-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}
.lg-quote-card blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-wrap: pretty;
}
.lg-quote-card blockquote em {
  font-style: italic;
  background: linear-gradient(to bottom, transparent 60%, rgba(44, 108, 219, 0.18) 60%);
  padding: 0 2px;
}
.lg-quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.lg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-signature);
  color: var(--text-on-brand);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lg-who { display: flex; flex-direction: column; gap: 2px; }
.lg-who-name { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--text-strong); }
.lg-who-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--text-muted); }

/* Stat row */
.lg-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 24, 22, 0.04);
}
.lg-stat {
  background: var(--surface-card);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lg-stat-num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.lg-stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Logo wall */
.lg-logo-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.lg-logo-wall-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lg-logos {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--text-body);
  letter-spacing: -0.01em;
}
.lg-logos span { white-space: nowrap; }


/* Divider (signup) */
.lg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lg-divider::before,
.lg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* Password strength (signup) */
.lg-pw-strength,
.lg-pw-mismatch,
.lg-pw-match {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lg-pw-strength.s-1 { color: var(--status-danger); }
.lg-pw-strength.s-2 { color: var(--color-primary); }
.lg-pw-strength.s-3 { color: var(--color-accent); }
.lg-pw-strength.s-4,
.lg-pw-strength.s-5 { color: var(--status-success); }
.lg-pw-mismatch { color: var(--status-danger); }
.lg-pw-match { color: var(--status-success); }

.lg-pw-bar {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.lg-pw-bar span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border-default);
  transition: background 0.18s ease;
}
.lg-pw-bar.s-1 span:nth-child(-n+1) { background: var(--status-danger); }
.lg-pw-bar.s-2 span:nth-child(-n+2) { background: var(--color-primary); }
.lg-pw-bar.s-3 span:nth-child(-n+3) { background: var(--color-accent); }
.lg-pw-bar.s-4 span:nth-child(-n+4) { background: var(--status-success); }
.lg-pw-bar.s-5 span:nth-child(-n+5) { background: var(--status-success); }

/* Field-level validation errors */
.lg-field-error {
  font-size: 12px;
  color: var(--status-danger);
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 960px) {
  .lg-page { grid-template-columns: 1fr; }
  .lg-visual-side { display: none; }
  .lg-form-side { padding: 32px 24px; min-height: 0; }
  .lg-headline { font-size: 44px; }
  .lg-form-wrap { max-width: 100%; }
}

