
:root {
  color-scheme: dark;
  --cream: #1B1916;
  --ink: #ECE6DA;
  --ink-2: #C9C2B5;
  --muted: #7C746A;
  --line-2: rgba(236, 230, 218, 0.14);
  --blue: #7E92F7;
  --blue-soft: #262A45;
  --text-on-accent: #161310;
  --surface-input: #16140F;
  --stage-bg-2: #080706;
  --stage-chrome: rgba(236, 230, 218, 0.92);
  --red: #F0786B;
  --red-soft: #3A2420;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

.auth {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--cream);
}
.auth-stage {
  position: relative;
  overflow: hidden;
  background: var(--stage-bg-2);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.auth-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  padding: 30px;
  opacity: .55;
}
.auth-grid span {
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(45, 73, 238, .20), rgba(255, 255, 255, .04));
  animation: authPulse 4s var(--ease) infinite;
}
.auth-grid span:nth-child(1) { animation-delay: 0s; }
.auth-grid span:nth-child(2) { animation-delay: .12s; }
.auth-grid span:nth-child(3) { animation-delay: .24s; }
.auth-grid span:nth-child(4) { animation-delay: .36s; }
.auth-grid span:nth-child(5) { animation-delay: .48s; }
.auth-grid span:nth-child(6) { animation-delay: .60s; }
.auth-grid span:nth-child(7) { animation-delay: .72s; }
.auth-grid span:nth-child(8) { animation-delay: .84s; }
.auth-grid span:nth-child(9) { animation-delay: .96s; }
.auth-grid span:nth-child(10) { animation-delay: 1.08s; }
.auth-grid span:nth-child(11) { animation-delay: 1.20s; }
.auth-grid span:nth-child(12) { animation-delay: 1.32s; }
@keyframes authPulse { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
.auth-quote {
  position: relative;
  max-width: 440px;
}
.wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--stage-chrome);
}
.wordmark .period { color: var(--blue); }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-card {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 500;
}
.auth-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.auth-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.inp {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-input);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}
.inp::placeholder { color: var(--muted); }
.inp:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.auth-go {
  margin-top: 8px;
  min-height: 56px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: var(--text-on-accent);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: filter .12s;
}
.auth-go:hover { filter: brightness(1.06); }
.auth-go svg { display: block; }
.error-banner {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--red);
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-stage { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-grid span { animation: none; }
}
