:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #111115;
  --line: #2a2a32;
  --text: #efeff3;
  --muted: #9a9aa6;
  --accent: #ef3340;
  --accent2: #d946ef;
  --good: #25c26e;
  --bad: #ff4d5d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #19141c 0, var(--bg) 42%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.panel {
  width: min(100%, 620px);
  background: rgba(17,17,21,.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}
.panel.wide { width: min(100%, 860px); }
.logo {
  font-weight: 900;
  letter-spacing: .08em;
  font-size: clamp(34px, 8vw, 62px);
  color: var(--accent);
  text-align: center;
}
.logo span { color: var(--text); }
.subtitle, .meta, .notice {
  color: var(--muted);
  text-align: center;
}
.subtitle { margin: 8px 0 26px; }
.notice { margin-top: 18px; font-size: 12px; line-height: 1.5; }
label { display:block; font-size: 13px; margin: 14px 0 7px; color: #d3d3db; }
input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b0b0f;
  color: var(--text);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
}
input:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(217,70,239,.12); }
button, .button-link {
  width: 100%;
  display: inline-block;
  text-align: center;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  padding: 13px 16px;
  margin-top: 20px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
button:disabled { opacity: .6; cursor: wait; }
.links { display:flex; gap:10px; margin-top:12px; }
.links a {
  flex:1; text-align:center; border:1px solid var(--line); color:var(--text);
  text-decoration:none; padding:10px; border-radius:10px; background:#0b0b0f;
}
.alert {
  border: 1px solid rgba(255,77,93,.35);
  background: rgba(255,77,93,.09);
  color: #ffb7bd;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.status { text-align:center; margin-bottom:6px; }
.status.ok { color: var(--good); }
.status.bad { color: var(--bad); }
.terminal {
  background: #050507;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-height: 260px;
  max-height: 520px;
  overflow:auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin-top: 20px;
}
.loading {
  position:fixed; inset:0; background:rgba(5,5,7,.88); z-index:99;
  display:grid; place-content:center; gap:16px; text-align:center;
}
.loading[hidden] { display:none; }
.spinner {
  width:46px; height:46px; border:4px solid #2a2a32; border-top-color:var(--accent);
  border-radius:50%; animation:spin .8s linear infinite; margin:auto;
}
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:560px) {
  .panel { padding:22px 18px; }
  .links { flex-direction:column; }
}
