/* Matrix terminal login — replaces the previous Carbon-styled page. */
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #000; color: #00ff5a;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  overflow: hidden;
}

.mtx { display: grid; place-items: center; min-height: 100vh; }

.mtx-rain {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; opacity: 0.35; pointer-events: none;
}

/* Terminal "window" — centered card */
.mtx-box {
  position: relative; z-index: 1;
  width: min(640px, 92vw);
  background: rgba(0, 12, 0, 0.86);
  border: 1px solid rgba(0, 255, 80, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 80, 0.08) inset,
    0 0 30px rgba(0, 255, 80, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.6);
}

.mtx-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 255, 80, 0.3);
  background: rgba(0, 30, 0, 0.4);
}
.mtx-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mtx-dot--r { background: #ff5f57; }
.mtx-dot--y { background: #f1bd2c; }
.mtx-dot--g { background: #28c941; }
.mtx-title {
  margin-left: 8px;
  color: rgba(0, 255, 80, 0.65);
  font-size: 12px; letter-spacing: 0.05em;
}

.mtx-screen { padding: 24px 28px 22px; }

.mtx-line { margin: 4px 0; font-size: 14px; line-height: 1.5; }
.mtx-line--ok { color: #00ff5a; }
.mtx-line--err { color: #ff6b6b; text-shadow: 0 0 8px rgba(255, 80, 80, 0.4); }
.mtx-line--ask { color: rgba(0, 255, 80, 0.9); margin-top: 12px; }
.mtx-line--mute { color: rgba(0, 255, 80, 0.4); font-size: 12px; margin-top: 18px; }
.mtx-mute { color: rgba(0, 255, 80, 0.45); }

.mtx-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.mtx-row { display: flex; align-items: center; gap: 10px; }
.mtx-prompt {
  color: #00ff5a; font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 255, 80, 0.55);
  user-select: none; flex-shrink: 0;
  min-width: 90px;
}

.mtx-input {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  color: #00ff5a;
  font: inherit; font-size: 15px;
  caret-color: #00ff5a;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 255, 80, 0.25);
  text-shadow: 0 0 4px rgba(0, 255, 80, 0.35);
}
.mtx-input:focus { border-bottom-color: rgba(0, 255, 80, 0.9); }
.mtx-input::placeholder { color: rgba(0, 255, 80, 0.3); }

.mtx-input::-ms-reveal,
.mtx-input::-ms-clear { display: none; }

.mtx-row--submit { margin-top: 6px; }
.mtx-submit {
  background: transparent;
  border: 1px solid rgba(0, 255, 80, 0.5);
  color: #00ff5a;
  font: inherit; font-size: 15px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-shadow: 0 0 6px rgba(0, 255, 80, 0.5);
  transition: background 80ms linear, border-color 80ms linear;
}
.mtx-submit:hover,
.mtx-submit:focus {
  background: rgba(0, 255, 80, 0.12);
  border-color: rgba(0, 255, 80, 0.9);
  outline: 0;
}
.mtx-submit__cmd { letter-spacing: 0.04em; }

.mtx-caret {
  width: 8px; display: inline-block;
  animation: mtx-blink 1s steps(2, start) infinite;
}
@keyframes mtx-blink {
  to { visibility: hidden; }
}

.mtx-form--busy .mtx-submit { pointer-events: none; opacity: 0.7; }
.mtx-form--busy .mtx-submit__cmd::after { content: ' …running'; opacity: 0.7; }

::selection { background: rgba(0, 255, 80, 0.35); color: #d8ffd8; }
