html,
body { min-height: 100%; }
body { margin: 0; color: var(--hz-ink); background: var(--hz-porcelain); }
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(400px, .95fr);
}

.brand-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  color: var(--hz-plate);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 3px,
      oklch(1 0 0 / .014) 3px 4px
    ),
    linear-gradient(165deg, var(--hz-steel-lift) 0%, var(--hz-steel) 42%, var(--hz-steel-deep) 100%);
}
.brand-stage::before,
.brand-stage::after { content: ""; position: absolute; pointer-events: none; }
.brand-stage::before {
  inset: 0 12% 0 auto;
  width: 1px;
  background: oklch(0.76 0.03 248 / .22);
}
.brand-stage::after {
  right: 12%;
  bottom: 0;
  width: 28%;
  height: 3px;
  background: var(--hz-copper);
}
.stage-serial {
  color: var(--hz-copper-pale);
  font-family: var(--hz-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
}
.stage-mark {
  position: absolute;
  top: 18%;
  right: -2%;
  width: min(42vw, 520px);
  opacity: .18;
}
.stage-mark img { display: block; width: 100%; height: auto; }
.stage-copy {
  position: absolute;
  left: clamp(32px, 5vw, 64px);
  right: clamp(32px, 9vw, 120px);
  bottom: clamp(104px, 16vh, 168px);
}
.stage-copy p {
  margin: 0 0 16px;
  color: var(--hz-copper-pale);
  font-family: var(--hz-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
}
.stage-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.stage-copy span {
  display: block;
  max-width: 42ch;
  margin-top: 24px;
  color: var(--hz-steel-mute);
  font-size: 16px;
  line-height: 1.7;
}
.stage-status {
  position: absolute;
  left: clamp(32px, 5vw, 64px);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hz-steel-mute);
  font-size: 12px;
  letter-spacing: .08em;
}
.stage-status i { flex: 0 0 auto; }

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 104px);
  background: var(--hz-plate);
}
.login-panel .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(48px, 9vh, 96px);
}
.login-panel .mark { width: 52px; height: 40px; }
.login-panel .mark img { display: block; width: 100%; height: 100%; }
.login-panel .brand h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
}
.login-panel .subtitle {
  margin-top: 4px;
  color: var(--hz-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}
.login-intro h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.login-intro p {
  margin: 0 0 32px;
  color: var(--hz-muted);
  font-size: 16px;
  max-width: 36ch;
}
.login-panel form { width: 100%; max-width: 420px; }
.field { margin-bottom: 20px; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.field label small {
  color: var(--hz-muted);
  font-family: var(--hz-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 500;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--hz-rule-strong);
  border-radius: 0;
  color: var(--hz-ink);
  background: var(--hz-porcelain-inset);
  font-size: 16px;
  outline: 0;
  transition: border-color .16s var(--hz-ease), box-shadow .16s var(--hz-ease), background-color .16s var(--hz-ease);
}
.field input:hover { border-color: var(--hz-slate); background: var(--hz-plate); }
.field input:focus {
  border-color: var(--hz-copper);
  background: var(--hz-plate);
  box-shadow: 0 0 0 3px var(--hz-copper-wash);
}
.login-panel form > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: var(--hz-plate);
  background: var(--hz-copper);
  box-shadow: inset 0 1px 0 oklch(0.68 0.10 60), inset 0 -2px 0 var(--hz-copper-deep);
  font-size: 16px;
  font-weight: 600;
}
.login-panel form > button:hover { background: var(--hz-copper-deep); }
.login-panel form > button b {
  font-size: 16px;
  font-weight: 500;
  transition: transform .16s var(--hz-ease);
}
.login-panel form > button:hover b { transform: translateX(3px); }
.alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid oklch(0.82 0.04 22);
  color: oklch(0.40 0.10 22);
  background: var(--hz-danger-wash);
  font-size: 14px;
  line-height: 1.55;
}
.login-panel footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  margin-top: auto;
  padding-top: 56px;
  color: var(--hz-muted);
  font-size: 11px;
  letter-spacing: .06em;
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-stage { min-height: 260px; padding: 24px; }
  .brand-stage::before { right: 24px; }
  .brand-stage::after { right: 24px; width: 96px; height: 3px; }
  .stage-mark { top: 36px; right: -36px; width: 260px; }
  .stage-copy { left: 24px; right: 56px; bottom: 56px; }
  .stage-copy h1 { font-size: clamp(32px, 9vw, 44px); }
  .stage-copy span { display: none; }
  .stage-status { display: none; }
  .login-panel {
    min-height: calc(100vh - 260px);
    justify-content: flex-start;
    padding: 32px 24px 24px;
  }
  .login-panel .brand { margin-bottom: 40px; }
  .login-panel form,
  .login-panel footer { max-width: none; }
  .login-panel footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hz-rule);
  }
}

@media (max-width: 420px) {
  .brand-stage { min-height: 220px; }
  .stage-copy { bottom: 36px; }
  .stage-copy h1 { font-size: 32px; }
  .login-panel { min-height: calc(100vh - 220px); }
  .login-panel .brand { margin-bottom: 32px; }
  .login-intro h1 { font-size: 30px; }
}
