/* Shared full-screen auth shell — StreamChum auth palette */

:root {
  --brand: #67e8f9;
  --ink: #f6f3ef;
  --muted: #a39e97;
  --teal: #2dd4bf;
  --cyan: #67e8f9;
  --line: rgba(255, 255, 255, 0.12);
  --panel: #121110;
  --field: #100f0e;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Figtree", sans-serif;
  --twitch: #9146ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--panel);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); }

.auth {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.15fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0e0d0c;
}

.auth-visual-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 11, 14, 0.82) 0%, rgba(7, 11, 14, 0.45) 45%, rgba(7, 11, 14, 0.62) 100%),
    url("/streamchum-hero-bg.png") center / cover no-repeat;
  transform: scale(1.03);
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(28px, 5vw, 56px);
  max-width: 34rem;
}

.auth-visual-copy .logo {
  display: block;
  width: min(280px, 70%);
  height: auto;
  margin-bottom: 28px;
}

.auth-visual-copy h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.auth-visual-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 28ch;
}

.auth-visual-copy .free {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-visual-copy .free strong {
  color: var(--teal);
  font-weight: 700;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 56px);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(103, 232, 249, 0.10), transparent 55%),
    var(--panel);
  border-left: 1px solid var(--line);
}

.auth-card {
  width: min(440px, 100%);
  animation: auth-rise 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.auth-card .brand-mobile {
  display: none;
  height: 44px;
  width: auto;
  margin: 0 0 22px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.auth-card .blurb {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 14px 0 6px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 6px;
}

.label-row label {
  margin: 0;
}

.forgot-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

.forgot-link:hover {
  text-decoration: underline;
}

.ok {
  color: #7dffc3;
  margin-top: 12px;
  min-height: 1.2em;
  font-size: 0.95rem;
  line-height: 1.45;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.18);
}

input:disabled,
input:read-only {
  opacity: 0.78;
}

.oauth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 2px;
}

a.google,
a.twitch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  font: 600 15px/1.2 var(--body);
  text-decoration: none;
  box-sizing: border-box;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}

a.google {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #3c4043 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

a.google:hover {
  background: #f7f8f8;
  border-color: #dadce0;
}

a.twitch {
  border: 1px solid #772ce8;
  background: var(--twitch);
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

a.twitch:hover { filter: brightness(1.08); }

a.google svg,
a.twitch svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

a.google[hidden],
a.twitch[hidden] {
  display: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider[hidden] { display: none; }

.btn-primary {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: linear-gradient(115deg, #67e8f9, #9af0fb);
  color: #041016;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(103, 232, 249, 0.22);
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(103, 232, 249, 0.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-secondary {
  margin-top: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-secondary:hover { background: rgba(167, 189, 198, 0.08); }

.err {
  color: #ffb4c0;
  margin-top: 12px;
  min-height: 1.2em;
  font-size: 0.95rem;
}

.foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

#workspaceField { display: none; }

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 34vh;
  }

  .auth-visual-copy {
    justify-content: flex-end;
    padding: 28px 22px;
    max-width: none;
  }

  .auth-visual-copy h2 {
    font-size: 1.55rem;
  }

  .auth-visual-copy p {
    max-width: none;
  }

  .auth-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    align-items: flex-start;
    padding-top: 28px;
  }

  .auth-card .brand-mobile {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual-media { transform: none; }
  .auth-card { animation: none; }
}
