/* Sign-in page for the plan board. It reproduces FabricMind's own landing and
   account-login card (frontend/src/views/home/HomeLandingView.vue and
   frontend/src/views/auth/LoginView.vue) so the board reads as part of 织元.
   Like that page, it is dark only. */

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  background: #070c14;
  color: #f4f7fc;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #070c14;
}

/* ── Top chrome ───────────────────────────────────────────── */
.chrome {
  position: absolute;
  z-index: 10;
  top: 20px;
  left: 50%;
  width: min(1152px, calc(100% - 32px));
  height: 42px;
  padding: 0 14px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 21px;
  background: rgba(10, 15, 25, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.chrome__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f4f7fc;
  font-size: 14px;
  font-weight: 620;
}

.chrome__brand img { border-radius: 6px; }

.chrome__badge {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(111, 155, 255, 0.48);
  border-radius: 16px;
  background: rgba(58, 102, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.035);
}

.hero__veil {
  background:
    radial-gradient(ellipse 70% 56% at 50% 44%, rgba(7, 12, 20, 0.12) 0%, rgba(7, 12, 20, 0.48) 58%, rgba(7, 12, 20, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 12, 20, 0.42) 0%, rgba(7, 12, 20, 0.08) 34%, rgba(7, 12, 20, 0.5) 72%, #070c14 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  /* Lower than FabricMind's 52px: the card stays open here instead of being a
     popover, and at 1280x720 it would otherwise sit on the end of the title. */
  padding-top: 150px;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 15px;
  color: rgba(226, 234, 247, 0.72);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 18px;
  color: #f7f9fd;
  font-size: 84px;
  font-weight: 660;
  line-height: 0.98;
  text-shadow: 0 16px 42px rgba(0, 4, 12, 0.42);
}

.hero__lede {
  max-width: 560px;
  margin: 24px auto 0;
  color: rgba(226, 234, 247, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

/* ── Account card (same tokens as LoginView's popover) ───── */
.account {
  --account-popover: rgba(14, 18, 28, 0.96);
  --account-text: #eef1f8;
  --account-subtle: #7d88a2;
  --account-border: #282e3c;
  --account-input: #1a1f2c;

  position: absolute;
  z-index: 20;
  top: 72px;
  right: max(16px, calc((100% - 1152px) / 2));
  width: min(304px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--account-border);
  border-radius: 8px;
  background: var(--account-popover);
  color: var(--account-text);
  box-shadow: 0 18px 40px -12px rgba(2, 4, 10, 0.56);
  animation: account-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account__head {
  min-height: 28px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.account__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.account__form { display: grid; }

.account__form label {
  margin-bottom: 6px;
  color: var(--account-subtle);
  font-size: 11px;
  line-height: 14px;
}

.account__form input {
  width: 100%;
  height: 38px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid var(--account-border);
  border-radius: 6px;
  outline: none;
  background: var(--account-input);
  color: var(--account-text);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account__form input:last-of-type { margin-bottom: 14px; }
.account__form input::placeholder { color: var(--account-subtle); }
.account__form input:hover { border-color: rgba(74, 114, 255, 0.52); }

.account__form input:focus {
  border-color: #4a72ff;
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.16);
}

.account__error {
  margin: -4px 0 12px;
  color: #ff8a8a;
  font-size: 12px;
  line-height: 18px;
}

.account__submit {
  width: 100%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: #2e5cff;
  color: #f4f6ff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(18, 42, 163, 0.34);
}

.account__submit:hover,
.account__submit:focus-visible { background: #4771ff; }

.account__submit:disabled { cursor: wait; opacity: 0.72; }

.account__spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(244, 246, 255, 0.35);
  border-top-color: #f4f6ff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.account__submit:disabled .account__spinner { display: inline-block; }

.account__note {
  margin: 12px 0 0;
  color: var(--account-subtle);
  font-size: 11px;
  line-height: 16px;
}

@keyframes account-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .hero h1 { font-size: 56px; }
  .hero__lede { font-size: 15px; }
}

@media (max-width: 460px) {
  .account { right: 12px; width: calc(100vw - 24px); }
  .hero__content { padding-top: 280px; }
  .hero h1 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .account { animation: none; }
  .account__form input { transition: none; }
  .account__spinner { animation-duration: 2s; }
}
