/* Login-only terminal skin. No changes to either authenticated workspace. */
body[data-page="login"] {
  --terminal-text: #d4d9c9;
  --terminal-muted: #9baba0;
  --terminal-line: #3c4943;
  color: var(--terminal-text);
  background: radial-gradient(ellipse at 50% 35%, #25312c 0%, #111916 55%, #0c110f 100%);
  font-family: "IBM Plex Mono", "Cascadia Mono", "Courier New", monospace;
}

.terminal-login {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.terminal-frame {
  width: min(100%, 580px);
  min-width: 0;
  border: 1px solid #56605a;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(145deg, #313b35, #202923);
  box-shadow: 0 26px 80px #0006, inset 0 1px 0 #ffffff12;
}

.terminal-topline, .terminal-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 20px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .12em;
  color: #b4beb2;
}

.terminal-led {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: #a5b99f;
}

.terminal-screen {
  position: relative;
  isolation: isolate;
  padding: 40px 42px 42px;
  border: 1px solid #101a14;
  border-radius: 10px;
  background: #131e19;
  box-shadow: inset 0 0 36px #0004;
}

.terminal-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #b6c2af05 3px 4px);
}

.terminal-eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c1b59c;
  margin-bottom: 24px;
}

.terminal-screen h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(25px, 5vw, 38px);
  line-height: 1.3;
  letter-spacing: -.045em;
  font-weight: 500;
  color: #e0e3d2;
  text-shadow: none;
}

.terminal-screen h1 span { display: block; }
.terminal-screen h1 i { font-style: normal; color: var(--terminal-muted); }
.terminal-subtitle {
  margin: 14px 0 30px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #b4c3b2;
}

.terminal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--terminal-muted);
  font-size: 9px;
  letter-spacing: .12em;
}
.terminal-divider::after { content: ""; height: 1px; background: var(--terminal-line); flex: 1; }
.terminal-notice {
  margin: 20px 0 30px;
  color: var(--terminal-muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 40ch;
}
.terminal-form { display: grid; gap: 24px; }
.terminal-form label { display: grid; gap: 10px; }
.terminal-form label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--terminal-text);
}
.terminal-form small { color: var(--terminal-muted); font-size: 9px; letter-spacing: .08em; }
.terminal-form input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #526157;
  border-radius: 3px;
  background: #0e1712;
  color: #e0e3d2;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  box-shadow: inset 0 2px 6px #0003;
  caret-color: #bdcdb6;
}
.terminal-form input:autofill { background: #18251d; color: #e0e3d2; }
.terminal-form input:-webkit-autofill {
  -webkit-text-fill-color: #e0e3d2;
  -webkit-box-shadow: 0 0 0 1000px #18251d inset;
}
.terminal-form button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  min-height: 52px;
  padding: 15px 18px;
  border: 1px solid #a7b69f;
  border-radius: 3px;
  background: #b4c1ab;
  color: #172319;
  font: 600 13px/1.5 "Courier New", monospace;
  letter-spacing: .03em;
  box-shadow: none;
  cursor: pointer;
}
.terminal-form button:hover { background: #c3cdb9; transform: none; }
.terminal-form input:focus-visible, .terminal-form button:focus-visible {
  outline: 2px solid #d3cfb4;
  outline-offset: 4px;
}
.terminal-flash { padding: 14px; border: 1px solid #af9e80; color: #dfccb0; line-height: 1.6; font-size: 13px; }
.terminal-footer { font-size: 9px; padding-bottom: 9px; }

@media (max-width: 420px) {
  .terminal-login { padding: 20px 12px; }
  .terminal-frame { padding: 7px; border-radius: 12px; }
  .terminal-screen { padding: 28px 20px; }
  .terminal-topline, .terminal-footer { padding-inline: 10px; font-size: 8px; }
  .terminal-screen h1 { font-size: clamp(22px, 6.5vw, 27px); }
}
