:root {
  --accent: #FF6600;
  --accent-dim: rgba(255, 102, 0, 0.14);
  --bg: #080808;
  --panel: #101010;
  --panel-2: #161616;
  --border: #242424;
  --text: #ffffff;
  --muted: #999999;
  --danger: #ff4d4f;
  --ok: #35c759;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 18px 60px;
}

.wrap { width: 100%; max-width: 460px; }
.wrap.wide { max-width: 860px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

h1 { margin: 0 0 8px; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--muted);
     text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0 0 16px; color: #c9c9c9; }
.muted { color: var(--muted); font-size: 13.5px; }

label { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 550; color: #d4d4d4; }

input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input::placeholder { color: #5c5c5c; }

.field { margin-bottom: 18px; }

button {
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, opacity .15s;
}
button:hover:not(:disabled) { filter: brightness(1.1); }
button:disabled { opacity: .55; cursor: default; }
button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #d4d4d4;
}
button.ghost:hover:not(:disabled) { border-color: #3a3a3a; filter: none; }
button.small { width: auto; padding: 9px 16px; font-size: 13.5px; }

.note {
  margin-top: 22px;
  padding: 15px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #b4b4b4;
}
.note a { color: var(--accent); text-decoration: none; font-weight: 550; }
.note a:hover { text-decoration: underline; }

.msg { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.msg.ok { background: rgba(53, 199, 89, .1); border: 1px solid rgba(53, 199, 89, .3); color: #a8e6b8; }
.msg.err { background: rgba(255, 77, 79, .1); border: 1px solid rgba(255, 77, 79, .3); color: #ffb3b4; }
.msg.info { background: var(--panel-2); border: 1px solid var(--border); color: #c9c9c9; }
.msg[hidden] { display: none; }

.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal page */
.reveal-box {
  margin: 22px 0 6px;
  padding: 22px;
  background: var(--panel-2);
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  text-align: center;
}
.pw {
  font: 600 24px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  word-break: break-all;
  color: var(--accent);
  user-select: all;
}
.countdown { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* admin */
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-head h1 { margin: 0; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.card + .card { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > .field { flex: 1; margin-bottom: 0; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
}
.badge.set { background: rgba(53,199,89,.15); color: #6ee08a; }
.badge.unset { background: rgba(255,77,79,.15); color: #ff9092; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
td { color: #c4c4c4; }
tbody tr:last-child td { border-bottom: none; }
.log-wrap { max-height: 380px; overflow-y: auto; }

.findings {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #b4b4b4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}
.findings[hidden] { display: none; }

.steps {
  margin: 18px 0 22px;
  padding: 0 0 0 20px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #b4b4b4;
}
.steps li { margin-bottom: 7px; }
.steps li::marker { color: var(--accent); }
.steps strong { color: #d9d9d9; }
.steps a { color: var(--accent); text-decoration: none; font-weight: 550; }
.steps a:hover { text-decoration: underline; }

.back { margin: 20px 0 0; text-align: center; }
.back a {
  display: inline-block;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.back a:hover { color: #d4d4d4; background: var(--panel-2); }

footer { margin-top: 18px; text-align: center; font-size: 12.5px; color: #5c5c5c; }
