/* ACBot login-only Zine restoration. All page rules are scoped to the login root. */
.acbot-login-zine {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #2b2822;
  background: #f4f1e9;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.acbot-login-zine .login-paper-grain,
.acbot-login-zine .login-paper-fiber,
.acbot-login-zine .login-dust,
.acbot-login-zine .login-fold {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.acbot-login-zine .login-paper-grain,
.acbot-login-zine .login-paper-fiber,
.acbot-login-zine .login-dust {
  inset: 0;
}

.acbot-login-zine .login-paper-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.055;
  mix-blend-mode: multiply;
}

.acbot-login-zine .login-paper-fiber {
  background-image:
    repeating-linear-gradient(64deg, rgb(43 40 34 / 1.8%) 0, rgb(43 40 34 / 1.8%) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(-58deg, rgb(43 40 34 / 1.4%) 0, rgb(43 40 34 / 1.4%) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.acbot-login-zine .login-dust {
  background-image:
    radial-gradient(circle, rgb(43 40 34 / 16%) 0.6px, transparent 0.9px),
    radial-gradient(circle, rgb(43 40 34 / 10%) 0.5px, transparent 0.8px);
  background-size: 190px 170px, 130px 210px;
  background-position: 20px 10px, 90px 60px;
  opacity: 0.5;
}

.acbot-login-zine .login-fold {
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to right, transparent, rgb(43 40 34 / 5%) 50%, rgb(251 249 243 / 50%) 52%, transparent);
  opacity: 0.6;
}

.acbot-login-zine .login-collage {
  position: absolute;
  left: 4.5%;
  top: 2.5%;
  z-index: 0;
  display: none;
  height: 95vh;
  aspect-ratio: 3 / 5;
  pointer-events: none;
  user-select: none;
}

.acbot-login-zine .login-collage-paper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: acbot-collage-breathe 16s ease-in-out infinite;
}

.acbot-login-zine .login-collage-paper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: contrast(1.02) saturate(1.05);
}

.acbot-login-zine .login-scene-caption {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 48%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgb(43 40 34 / 76%);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.65;
  writing-mode: vertical-rl;
}

.acbot-login-zine .login-brand {
  position: absolute;
  top: 28px;
  left: 24px;
  z-index: 20;
}

.acbot-login-zine .login-brand > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acbot-login-zine .login-brand > div > div:first-child {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: #1b39d9;
}

.acbot-login-zine .login-brand span:first-child {
  display: block;
  color: #2b2822;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.acbot-login-zine .login-brand span:last-child {
  color: #777064;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.acbot-login-zine .login-layout {
  position: relative;
  z-index: 10;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr);
}

.acbot-login-zine .login-spacer {
  display: none;
}

.acbot-login-zine .login-form-column {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 64px;
}

.acbot-login-zine .login-panel {
  position: relative;
  width: 100%;
  max-width: 384px;
}

.acbot-login-zine .login-panel-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.acbot-login-zine .login-panel-label > span:last-child {
  height: 1px;
  flex: 1 1 auto;
  background: #d6d0c2;
}

.acbot-login-zine .zine-label {
  color: #8c877b;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.acbot-login-zine .zine-num {
  color: #1b39d9;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.acbot-login-zine .login-card-wrap {
  position: relative;
}

.acbot-login-zine .login-card-ink {
  position: absolute;
  inset: -14px -10px -18px -16px;
  border-radius: 40% 55% 48% 52%;
  background: radial-gradient(60% 70% at 30% 40%, rgb(43 40 34 / 5.5%), transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}

.acbot-login-zine .login-card-offset {
  position: absolute;
  inset: -1px;
  transform: translate(5px, 6px);
  border: 1px solid rgb(27 57 217 / 22%);
  border-radius: 2px;
  pointer-events: none;
}

.acbot-login-zine .login-card-tab {
  position: absolute;
  top: -1px;
  right: 12px;
  width: 32px;
  height: 3px;
  background: rgb(27 57 217 / 70%);
  pointer-events: none;
}

.acbot-login-zine .login-card {
  position: relative;
  padding: 28px;
  border: 1px solid #afa99c;
  border-radius: 2px;
  background: #fbf9f3;
  box-shadow: 0 10px 34px rgb(43 40 34 / 6%);
}

.acbot-login-zine .login-card h1 {
  margin: 0 0 4px;
  color: #26241f;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 20px;
  font-weight: 700;
}

.acbot-login-zine .login-card h1 + p {
  margin: 0 0 24px;
  color: #69645b;
  font-size: 12px;
}

.acbot-login-zine .login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acbot-login-zine .login-card form > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acbot-login-zine .login-card label {
  display: block;
  color: #4d4942 !important;
}

.acbot-login-zine .login-card label + div {
  position: relative;
}

.acbot-login-zine .login-card label + div > svg {
  position: absolute;
  z-index: 10;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #b0aa9b;
}

.acbot-login-zine .login-input {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 44px;
  padding: 8px 12px 8px 40px;
  border: 1px solid #aaa395 !important;
  border-radius: 2px;
  outline: none;
  background: #fffefa !important;
  color: #26241f !important;
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.18s ease;
}

.acbot-login-zine .login-input::placeholder {
  color: #b0aa9b;
}

.acbot-login-zine .login-input:focus {
  border-color: #1b39d9 !important;
  box-shadow: 0 0 0 2px rgb(27 57 217 / 14%);
}

.acbot-login-zine .login-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 2px;
  background: #1b39d9;
  box-shadow: 0 4px 0 rgb(20 42 163 / 16%);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.16s ease, transform 0.12s ease, opacity 0.16s ease;
}

.acbot-login-zine .login-submit:hover { background: #152dae; }
.acbot-login-zine .login-submit:active { transform: scale(0.99); }
.acbot-login-zine .login-submit:disabled { opacity: 0.6; pointer-events: none; }

.acbot-login-zine .login-lookup {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ded8cc;
  text-align: center;
}

.acbot-login-zine .login-lookup p {
  margin: 0 0 6px;
  color: #8c877b;
  font-size: 10px;
}

.acbot-login-zine .login-lookup button {
  border: 0;
  background: transparent;
  color: #1b39d9;
  cursor: pointer;
  font-size: 11px;
}

.acbot-login-zine .login-lookup button:hover { color: #152dae; }

.acbot-login-zine .login-status {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.acbot-login-zine .login-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #676259;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.acbot-login-zine .login-status i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #3e8b55;
}

.acbot-login-zine .login-beian {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
}

.acbot-login-zine .login-beian a {
  color: #706b62;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.acbot-login-zine .login-beian a:hover { color: #1b39d9; }

.login-lookup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  background: rgb(43 40 34 / 28%);
  backdrop-filter: blur(4px);
}

.login-lookup-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: 384px;
  padding: 24px;
  border: 1px solid #afa99c;
  border-radius: 2px;
  background: #fbf9f3;
  box-shadow: 0 14px 42px rgb(43 40 34 / 16%);
  color: #2b2822;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-lookup-dialog > * + * { margin-top: 16px; }
.login-lookup-dialog > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.login-lookup-dialog h2 { margin: 0; color: #26241f; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 16px; font-weight: 700; }
.login-lookup-dialog p { color: #69645b; }
.login-lookup-dialog .login-input { height: 40px; padding-left: 12px; }

@keyframes acbot-collage-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

@media (min-width: 1024px) {
  .acbot-login-zine .login-collage { display: block; }
  .acbot-login-zine .login-brand { left: 56px; }
  .acbot-login-zine .login-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .acbot-login-zine .login-spacer { display: block; grid-column: span 7 / span 7; }
  .acbot-login-zine .login-form-column { grid-column: span 5 / span 5; padding: 0 64px 0 24px; }
}

@media (max-width: 520px) {
  .acbot-login-zine { overflow-y: auto; }
  .acbot-login-zine .login-form-column { align-items: flex-start; padding: 104px 20px 72px; }
  .acbot-login-zine .login-card { padding: 24px; }
  .acbot-login-zine .login-beian { position: relative; bottom: auto; padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .acbot-login-zine .login-collage-paper,
  .acbot-login-zine .fade-up,
  .login-lookup-dialog.fade-up { animation: none; }
}
