:root {
  color-scheme: dark;
  --bg: #020402;
  --panel: #041007;
  --panel-2: #061909;
  --text: #69ff7d;
  --dim: #2da546;
  --strong: #b7ffc2;
  --error: #ff6b6b;
  --border: #1c7b32;
  --shadow: rgba(23, 255, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(105, 255, 125, 0.035) 50%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(105, 255, 125, 0.12), transparent 34rem),
    var(--bg);
  background-size: 100% 4px, auto, auto;
  color: var(--text);
  font-family: "Terminal", "Lucida Console", "Consolas", "Courier New", monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.025), transparent 18%, rgba(255,255,255,0.018));
  mix-blend-mode: screen;
}

.terminal-shell {
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.terminal-window {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(4, 16, 7, 0.98), rgba(2, 8, 4, 0.98));
  box-shadow: 0 0 36px var(--shadow), inset 0 0 28px rgba(45, 165, 70, 0.09);
  overflow: hidden;
}

.terminal-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(45, 165, 70, 0.42);
  background: var(--panel-2);
}

.dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  background: rgba(105, 255, 125, 0.12);
}

.session {
  margin-left: 8px;
  color: var(--strong);
  font-size: 13px;
}

.terminal-content {
  padding: clamp(22px, 5vw, 54px);
}

.line,
.brief p,
.status,
label {
  margin: 0;
  line-height: 1.55;
  text-shadow: 0 0 9px rgba(105, 255, 125, 0.26);
}

.line::before {
  content: "$ ";
  color: var(--dim);
}

.muted {
  color: var(--dim);
}

.auth-form {
  width: min(560px, 100%);
  margin: 34px 0 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--strong);
}

label:not(:first-child) {
  margin-top: 16px;
}

.prompt-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(45, 165, 70, 0.68);
  border-radius: 4px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.34);
}

.prompt {
  color: var(--strong);
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

input::placeholder {
  color: rgba(105, 255, 125, 0.36);
}

.status {
  min-height: 28px;
  margin: 10px 0 14px;
  color: var(--dim);
  font-size: 14px;
}

.status.error {
  color: var(--error);
}

.status.ok {
  color: var(--strong);
}

button {
  width: 168px;
  height: 42px;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: rgba(105, 255, 125, 0.08);
  color: var(--strong);
  font: inherit;
  cursor: pointer;
  text-transform: lowercase;
  box-shadow: inset 0 0 16px rgba(105, 255, 125, 0.12);
}

button:hover,
button:focus-visible {
  background: rgba(105, 255, 125, 0.16);
  box-shadow: 0 0 18px var(--shadow), inset 0 0 16px rgba(105, 255, 125, 0.16);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.brief {
  max-width: 720px;
  padding-top: 24px;
  border-top: 1px dashed rgba(45, 165, 70, 0.46);
  color: var(--dim);
}

.brief p + p {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .terminal-shell {
    width: min(100% - 18px, 920px);
    padding: 14px 0;
  }

  .terminal-content {
    padding: 22px 16px;
  }

  .session,
  .status {
    font-size: 12px;
  }

  button {
    width: 100%;
  }
}
