/* Login page styles. Extracted from an inline <style> block so the CSP can
   drop style-src 'unsafe-inline' (an inline block would be blocked). */
:root {
  --g300:#95D9CB; --g400:#64C6B1; --g500:#40BCA3; --g600:#27A88E; --g700:#179078;
  --d900:#15282D; --darkest:#0E2025;
  --white:#fff; --muted:rgba(255,255,255,0.62); --faint:rgba(255,255,255,0.35);
  --sans:"Poppins",-apple-system,sans-serif;
  --mono:"Azeret Mono",ui-monospace,Menlo,monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: var(--sans); background: var(--darkest); color: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

#aurora { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }

.auth {
  position: relative; z-index: 1;
  min-height: 100dvh; height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
}

.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px 38px;
  border-right: 1px solid rgba(100,198,177,0.12);
}

.hero__top { display: flex; justify-content: space-between; align-items: flex-start; }
.wordmark { width: 138px; aspect-ratio: 722/300; display: block; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--g400);
  background: rgba(64,188,163,0.10); border: 1px solid rgba(64,188,163,0.28);
  padding: 5px 12px; border-radius: 999px;
}
.secure-badge .lock {
  width: 10px; height: 10px; display: block;
}

.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--mono); font-size: 29.7px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--g400);
}

h1 {
  font-size: clamp(2.08rem, 3.36vw, 3.12rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
  text-wrap: balance; margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--g400); }

.lead {
  font-size: 1.02rem; line-height: 1.65; color: var(--muted);
  max-width: 44ch; text-wrap: pretty; margin-bottom: 36px;
}

.scene { perspective: 900px; perspective-origin: 50% 50%; width: 100%; max-width: 520px; }
.dash-inner {
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.08s linear;
  will-change: transform;
}
.dash-svg { width: 100%; display: block; overflow: visible; }

.bar { transform-origin: bottom center; animation: barGrow 1.1s cubic-bezier(0.22,1,0.36,1) both; }
.bar:nth-child(1) { animation-delay: 0.50s; }
.bar:nth-child(2) { animation-delay: 0.55s; }
.bar:nth-child(3) { animation-delay: 0.60s; }
.bar:nth-child(4) { animation-delay: 0.65s; }
.bar:nth-child(5) { animation-delay: 0.70s; }
.bar:nth-child(6) { animation-delay: 0.75s; }
.bar:nth-child(7) { animation-delay: 0.80s; }
.bar:nth-child(8) { animation-delay: 0.85s; }
@keyframes barGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.spark { stroke-dasharray: 120; stroke-dashoffset: 120; animation: drawLine 1.4s cubic-bezier(0.22,1,0.36,1) 0.9s both; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.act-row { animation: slideIn 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.act-row:nth-of-type(1) { animation-delay: 1.1s; }
.act-row:nth-of-type(2) { animation-delay: 1.3s; }
@keyframes slideIn { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:none; } }

.node-ring { animation: nodeRing 2.4s ease-out infinite; transform-origin: 456px 57px; }
.node-ring:nth-child(2) { animation-delay: 0.6s; }
.node-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes nodeRing { 0% { r: 10; opacity: 0.5; } 100% { r: 62; opacity: 0; } }

.panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 36px;
  background: rgba(10,22,26,0.60);
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
}
.card {
  width: 100%; max-width: 380px;
  background: rgba(14,30,34,0.75);
  border: 1px solid rgba(100,198,177,0.18);
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 2px 4px rgba(0,0,0,0.3),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 120px rgba(64,188,163,0.08),
    inset 0 1px 0 rgba(100,198,177,0.12);
}

.card__kicker {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--g500); margin-bottom: 16px;
}
.card h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; text-wrap: balance; }
.card .sub { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 28px; text-wrap: pretty; }

.alert {
  display: none; margin-bottom: 18px; padding: 11px 14px; border-radius: 10px;
  font-size: 0.87rem; line-height: 1.4;
  border: 1px solid rgba(225,106,92,0.4); background: rgba(225,106,92,0.12); color: #ffd9d4;
}
.alert.is-visible { display: block; }

.field-label {
  display: block; text-align: left;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--g400);
  margin-bottom: 8px;
}
.field-input {
  width: 100%; padding: 14px 16px; margin-bottom: 16px;
  border-radius: 12px; border: 1px solid rgba(100,198,177,0.22);
  background: rgba(10,22,26,0.6); color: #fff;
  font-family: var(--sans); font-size: 0.95rem;
}
.field-input::placeholder { color: var(--faint); }
.field-input:focus {
  outline: none; border-color: var(--g400);
  box-shadow: 0 0 0 2px rgba(64,188,163,0.25);
}

.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 20px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.22,1,0.36,1), box-shadow 0.15s ease, filter 0.18s ease;
}
.cta-btn--primary {
  color: #071618;
  background: linear-gradient(135deg, var(--g300) 0%, var(--g500) 50%, var(--g700) 100%);
  box-shadow: 0 0 0 1px rgba(64,188,163,0.3), 0 8px 28px rgba(64,188,163,0.40), inset 0 1px 0 rgba(255,255,255,0.3);
}
.cta-btn--primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 0 0 1px rgba(64,188,163,0.5), 0 16px 48px rgba(64,188,163,0.55); filter: brightness(1.07); }
.cta-btn--primary:active { transform: translateY(0) scale(0.99); }
.cta-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.card__note {
  margin-top: 18px;
  /* One line rather than breaking mid-sentence, which split "account" from
     "team" and read as two separate thoughts. The card is a fixed width, so the
     constraint is its 306px inner box, not the viewport: the text measures 320px
     at 0.78rem, and 0.72 is the largest step that clears it with headroom for
     platforms whose fonts render wider. */
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
  white-space: nowrap;
}

.card__foot {
  margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g500); box-shadow: 0 0 8px var(--g500); }

*:focus-visible { outline: 2px solid var(--g400); outline-offset: 3px; border-radius: 6px; }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.hero__top  { animation: fadeUp .65s cubic-bezier(0.22,1,0.36,1) .08s both; }
.eyebrow    { animation: fadeUp .65s cubic-bezier(0.22,1,0.36,1) .16s both; }
h1          { animation: fadeUp .70s cubic-bezier(0.22,1,0.36,1) .22s both; }
.lead       { animation: fadeUp .65s cubic-bezier(0.22,1,0.36,1) .28s both; }
.scene      { animation: fadeUp .75s cubic-bezier(0.22,1,0.36,1) .36s both; }
.card       { animation: fadeUp .80s cubic-bezier(0.22,1,0.36,1) .20s both; }

@media (max-width: 920px) {
  html, body { overflow: auto; }
  .auth { grid-template-columns: 1fr; height: auto; min-height: 100dvh; overflow: auto; }
  .hero { padding: 32px 24px 28px; border-right: 0; border-bottom: 1px solid rgba(100,198,177,0.12); }
  .panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,22,26,0.8); padding: 36px 24px; }
  h1 { font-size: clamp(1.76rem, 6.4vw, 2.4rem); }
}

/* Narrower than the card's own width, the viewport becomes the constraint and
   even the reduced size cannot hold one line - so it wraps rather than spilling
   out of the card. */
@media (max-width: 400px) {
  .card__note { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  #aurora { display: none; }
  body { background: var(--darkest); }
  .card { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* "Sign in as someone else" - the way out of a remembered provider, shown only
   when there is one to escape from. */
.card__pick {
  display: block;
  margin-top: 14px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.card__pick:hover { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
