/* ── Login page ───────────────────────────────────────── */

.login {
  display: grid; justify-items: center; align-items: end;
  min-height: 100vh; min-height: var(--vph, 100dvh);
  padding: 20px; box-sizing: border-box;
}

.login-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px; margin-bottom: 34px;
}

/* ── hero backdrop ── */

.hero {
  position: fixed; inset: 0; z-index: 0; background: #000; overflow: hidden;

  &::after {
    content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5);
  }
}

.hero-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border: 0;
}

/* ── forms ── */

.card { padding: 0; }

#loginForm, #askForm {
  display: flex; flex-direction: column; gap: 14px;
}

.loginrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 6px;
}

.asksent {
  color: #cfcfcf; font-size: 11.5px; line-height: 1.7;
  margin: 0; text-align: center;
}

/* ── login-specific styling (over dark hero) ── */

.login {
  & label { color: #8f8f8f; }

  & .primary {
    background: var(--acc); color: var(--acc-ink);
    &::before, &::after { color: #666; }
    &:hover { color: var(--acc-ink); }
  }

  & .err { color: #fff; }

  & .loginrow .ghost {
    background: rgba(255, 255, 255, .06); color: #cfcfcf;
  }

  & input[type=text], & input[type=password], & input {
    background: rgba(10, 10, 12, .82); color: #fff;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-ctl); padding: 10px 11px;
    backdrop-filter: blur(6px);

    &::placeholder { color: #4a4a4a; }
    &:focus {
      outline: none; border-color: rgba(70, 211, 146, .55);
      box-shadow: 0 0 0 3px var(--acc-soft);
    }
  }

  & input:-webkit-autofill,
  & input:-webkit-autofill:hover,
  & input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0d0d0d inset;
    caret-color: #fff;
  }

  & .forgot {
    background: none; box-shadow: none; width: auto;
    align-self: center; color: #8f8f8f; margin-top: 10px; opacity: .55;
    &:hover { background: none; color: #fff; opacity: 1; }
  }
}

/* ── beta note ── */

.betanote {
  position: relative; z-index: 1; margin-bottom: 22px;

  & p { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: #b9b9c2; }

  & .link {
    color: var(--acc); text-decoration: underline; text-underline-offset: 3px;
    background: none; box-shadow: none; padding: 0; border-radius: 0;
    font-size: inherit; letter-spacing: 0; text-transform: none;
    &:hover { color: #7ae3b2; }
  }
}

.beta-chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc);
  box-shadow: inset 0 0 0 1px rgba(70, 211, 146, .35);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}

/* ── newsletter row ── */

.newsrow {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);

  & input { min-width: 0; }
  & .primary.small { padding: 8px 14px; font-size: 13px; line-height: 1; }
}

.news-k {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: #8f8f8f;
}
.news-note {
  grid-column: 1 / -1; margin: 2px 0 0;
  font-size: 10.5px; color: #6a6a72;
}

/* ── legal row ── */

.legalrow {
  position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%);
  z-index: 1; margin: 0; white-space: nowrap;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);

  & a {
    color: var(--faint); text-decoration: none;
    &:hover { color: var(--acc); }
  }
}

/* ── responsive ── */

@media (max-width: 560px) {
  .login-inner h1 { font-size: 13px; letter-spacing: .28em; }
}

@media (max-width: 700px) {
  .login input, .login textarea, .login select { font-size: 16px; }
}
