/*
 * Sign-in page styling.
 *
 * Deliberately self-contained: it repeats the blueprint design tokens instead
 * of importing base.css, so the sign-in page stays loadable by a signed-out
 * visitor without exposing any generated workspace stylesheet. Not produced by
 * tools/build_site_styles.mjs — this file is hand-maintained source.
 */

:root {
  --ink: #0f172a;
  --muted: #58708a;
  --paper: #fff;
  --line: #d9e1ef;
  --blue: #1d57f4;
  --blue-soft: #edf3ff;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --panel-shadow: 0 14px 28px #1b2e5217;
}

* { box-sizing: border-box; }

body {
  color: var(--ink);
  letter-spacing: -.012em;
  background-color: #edf6ff;
  background-image:
    linear-gradient(#1269c70d 1px, #0000 1px),
    linear-gradient(90deg, #1269c70d 1px, #0000 1px),
    radial-gradient(circle at 88% 0, #449fff26, #0000 27%);
  background-size: 28px 28px, 28px 28px, auto;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, PingFang SC, Microsoft YaHei, Noto Sans SC, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  display: flex;
}

a { color: inherit; text-decoration: none; }

/* Header ==================================================================== */
.auth-nav {
  border-bottom: 1px solid #c6dcef;
  background: #ffffffed;
  border-radius: 0 0 20px 20px;
  align-items: center;
  width: min(1180px, 100% - 48px);
  height: 84px;
  margin: 0 auto;
  display: flex;
  box-shadow: 0 7px 18px #1a5c9f12;
}
.auth-brand {
  letter-spacing: -.02em;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 19px;
  font-weight: 800;
  display: inline-flex;
}
.auth-brand > span {
  color: #fff;
  background: linear-gradient(140deg, #1b7dff, #1d57f4);
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 21px;
  display: grid;
  box-shadow: 0 6px 14px #0d6edc33;
}
.auth-brand small {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

/* Layout ==================================================================== */
.auth-main {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  width: min(1180px, 100% - 48px);
  flex: 1;
  margin: 0 auto;
  padding: 48px 0 64px;
  display: grid;
}
.auth-copy > span {
  color: #0b68c7;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 800;
}
.auth-copy h1 {
  letter-spacing: -.055em;
  margin: 16px 0 20px;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.02;
}
.auth-copy h1 em {
  color: var(--blue);
  font-style: normal;
}
.auth-copy > p {
  color: var(--muted);
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}
.auth-facts {
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  display: grid;
}
.auth-facts li {
  color: #35506d;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
}
.auth-facts li b {
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 13px;
  display: grid;
}

/* Card ====================================================================== */
.auth-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: var(--panel-shadow);
}
.auth-card > header { margin-bottom: 24px; }
.auth-card h2 {
  letter-spacing: -.03em;
  margin: 0 0 6px;
  font-size: 25px;
}
.auth-card > header p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.auth-field {
  gap: 6px;
  margin-bottom: 16px;
  display: grid;
}
.auth-field span {
  font-size: 13px;
  font-weight: 800;
}
.auth-field input {
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}
.auth-field input:focus-visible {
  border-color: var(--blue);
  outline: 3px solid #1d57f433;
  outline-offset: 1px;
}
.auth-field input:disabled {
  color: #7d8ea3;
  background: #f4f7fc;
}

.auth-submit {
  color: #fff;
  cursor: pointer;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  display: flex;
}
.auth-submit:hover:not(:disabled) { background: #1749d6; }
.auth-submit:focus-visible {
  outline: 3px solid #1d57f44d;
  outline-offset: 2px;
}
.auth-submit:disabled {
  cursor: progress;
  opacity: .62;
}

/* Feedback ================================================================== */
.auth-error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #f3c9c5;
  border-radius: 10px;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.5;
  display: flex;
}
.auth-error b {
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  font-size: 12px;
  display: grid;
}
.auth-error[hidden] { display: none; }

.auth-card footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}

/* Page footer =============================================================== */
.auth-foot {
  color: #6b8199;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding-bottom: 28px;
  font-size: 13px;
}

/* Responsive ================================================================ */
@media (max-width: 940px) {
  .auth-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 34px;
  }
  .auth-copy h1 { font-size: clamp(36px, 9vw, 48px); }
  .auth-copy > p { font-size: 16px; }
  .auth-facts { margin-top: 22px; }
}
@media (max-width: 560px) {
  .auth-nav { width: 100%; height: 72px; border-radius: 0; }
  .auth-main, .auth-foot { width: min(1180px, 100% - 32px); }
  .auth-card { padding: 26px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
