/* ===========================================================================
   登录 / 403
   =========================================================================== */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.auth__left {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 72px);
  background-color: var(--paper);
  background-image: var(--noise);
  border-right: 1px solid var(--rule-strong);
  overflow: hidden;
}

.auth__brand { display: flex; align-items: center; gap: var(--s-3); }
/* 登录页左栏留白大，用 40px 带印泥点的完整版 */
.auth__brand .brand__mark { width: 42px; height: 42px; }

.auth__mantra {
  margin: auto 0;
  width: 100%;
  max-width: 580px;
}

.auth__word {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
}
.auth__word:last-child { border-bottom: 1px solid var(--rule); }
.auth__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  padding-top: 12px;
}
.auth__cn {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.auth__en {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.auth__desc {
  margin-top: 9px;
  font-size: var(--t-sm);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 32ch;
}

.auth__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.auth__foot b { font-weight: 400; color: var(--ink-2); }

.auth__credit { margin-top: var(--s-4); }
/* 手机端左栏整块隐藏，署名要跟到表单下方 */
.auth__mcredit { display: none; }

.auth__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8) var(--s-6);
  background: var(--paper-card);
  overflow-y: auto;
}

.auth__form { width: min(356px, 100%); }
.auth__form h1 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
}
.auth__form .sub {
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--ink-3);
}

.fieldrow { margin-top: var(--s-5); }
.fieldrow__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fieldrow__label i { font-style: normal; letter-spacing: 0.02em; text-transform: none; color: var(--ink-3); }

.auth__err {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding: 10px var(--s-3);
  background: var(--seal-wash);
  border-left: 2px solid var(--seal);
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--seal-deep);
  animation: shake 260ms var(--ease-out);
}
@keyframes shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-3px); }
  60% { transform: translateX(2px); }
}

.auth__submit { width: 100%; margin-top: var(--s-6); }

.auth__demo {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-3);
}
.auth__demo .label { display: block; margin-bottom: 6px; }
.auth__demo code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--paper-sunk);
  padding: 1px 5px;
  border-radius: 1px;
}
.auth__demo button {
  font-size: 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-strong);
}
.auth__demo button:hover { color: var(--seal); border-bottom-color: var(--seal); }

/* ---------------- 403 ---------------------------------------------------- */
.denied {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--s-10) var(--s-6);
  background-color: var(--paper);
  background-image: var(--noise);
}
.denied__inner { max-width: 440px; text-align: left; }
.denied__code {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 108px);
  line-height: 0.92;
  letter-spacing: var(--ls-display);
  color: var(--ink-4);
}
.denied__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  letter-spacing: var(--ls-title);
}
.denied__desc {
  margin-top: var(--s-3);
  font-size: var(--t-base);
  line-height: 1.8;
  color: var(--ink-3);
}
.denied__actions { margin-top: var(--s-6); display: flex; gap: var(--s-2); }
