:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #0d1015;
  --line: #2c323b;
  --line-soft: #20252d;
  --text: #f2f2ef;
  --muted: #858d98;
  --gold: #d4af70;
  --gold-deep: #9f733b;
  --green: #62cca0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-height: 100vh; color: var(--text); font: 14px/1.55 Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(720px, 1fr) 480px; }
.showcase {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 34px 42px 30px;
  border-right: 1px solid var(--line);
  background: #080a0d;
}
.showcase::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #05070a99 0%, transparent 24%, transparent 55%, #05070ae8 100%), linear-gradient(90deg, #05070a73 0%, transparent 42%);
}
.showcase-head { z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.showcase-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-seal { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #e2c182; border-radius: 10px; color: #17110a; background: linear-gradient(145deg, #efd194, #a7793e); font-size: 18px; font-weight: 900; }
.showcase-brand b { display: block; font-size: 15px; letter-spacing: .05em; text-shadow: 0 2px 12px #000; }
.showcase-brand small { display: block; color: #a0a5ad; font-size: 8px; letter-spacing: .21em; text-shadow: 0 2px 10px #000; }
.edition { color: #a0a5ad; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-shadow: 0 2px 10px #000; }

.poster { position: absolute; z-index: -2; inset: 0; margin: 0; background: #030406; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.pipeline { z-index: 1; display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; max-width: 940px; width: 100%; justify-self: center; padding: 18px 20px; border: 1px solid #ffffff1a; border-radius: 8px; background: #07090cbd; box-shadow: 0 16px 50px #0008; backdrop-filter: blur(8px); }
.pipeline > div { display: grid; grid-template-columns: 27px 1fr; column-gap: 8px; }
.pipeline span { grid-row: 1 / 3; align-self: center; color: var(--gold); font: 800 10px/1 ui-monospace, monospace; }
.pipeline b { font-size: 11px; letter-spacing: .03em; }
.pipeline small { color: #9299a3; font-size: 9px; }
.pipeline > i { display: block; height: 1px; background: #555c66; }

.auth-panel { display: grid; place-items: center; padding: 48px 54px; background: var(--panel); }
.auth-wrap { width: 100%; max-width: 370px; }
.panel-label { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.panel-label span { width: 34px; height: 1px; background: var(--gold); }
.auth-copy h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.25; letter-spacing: .02em; }
.auth-copy p { margin: 0 0 34px; color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; color: #a2a9b3; font-size: 11px; }
.input-shell { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 14px; color: #777164; font-style: normal; font-size: 11px; }
.input-shell input { width: 100%; height: 49px; padding: 0 43px; border: 1px solid #353c46; border-radius: 7px; outline: 0; color: #fff; background: #080b0f; }
.input-shell input::placeholder { color: #505761; }
.input-shell input:focus { border-color: #a88756; background: #090d12; }
.password-toggle { position: absolute; right: 8px; width: 32px; height: 32px; border: 0; color: #676f79; background: transparent; cursor: pointer; }
.password-toggle.active { color: var(--gold); }
.form-meta { display: flex; align-items: center; justify-content: space-between; color: #6e7681; font-size: 10px; }
.form-meta a, .mode-switch a, .auth-foot a { color: var(--gold); text-decoration: none; }
.secure-note { display: flex; align-items: center; gap: 7px; }
.secure-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.error { min-height: 19px; color: #ef8d78; font-size: 11px; }
.submit { width: 100%; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 1px solid #e1bd7b; border-radius: 7px; color: #181109; background: linear-gradient(110deg, var(--gold-deep), #e5c583 52%, #b88442); font-weight: 900; cursor: pointer; }
.submit:hover { filter: brightness(1.06); }
.submit:disabled { opacity: .7; cursor: wait; }
.submit i { font-style: normal; font-size: 19px; }
.mode-switch { margin-top: 21px; color: #747c87; text-align: center; font-size: 11px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 72px; padding-top: 17px; border-top: 1px solid var(--line-soft); color: #535b65; font-size: 8px; letter-spacing: .11em; }
.auth-foot a { letter-spacing: 0; font-size: 9px; }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(580px, 1fr) 430px; }
  .showcase { padding-left: 28px; padding-right: 28px; }
  .auth-panel { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 900px) {
  .auth-shell { display: block; }
  .showcase { display: none; }
  .auth-panel { min-height: 100vh; padding: 38px 24px; }
  .auth-wrap { max-width: 410px; }
  .panel-label { margin-bottom: 36px; }
  .auth-foot { margin-top: 48px; }
}

@media (max-height: 780px) and (min-width: 901px) {
  .showcase { padding-top: 22px; padding-bottom: 20px; }
  .pipeline { padding-top: 14px; padding-bottom: 14px; }
  .panel-label { margin-bottom: 24px; }
  .auth-copy p { margin-bottom: 22px; }
  .auth-form { gap: 12px; }
  .auth-foot { margin-top: 30px; }
}
