/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg:        #0d0d0d;
  --surface:   #141414;
  --border:    #2a2a2a;
  --accent:    #e8ff5a;
  --accent-dk: #b8cc30;
  --text:      #e8e8e8;
  --muted:     #666;
  --warn:      #ff6b35;
  --radius:    2px;
  --font-mono: "Courier New", Courier, monospace;
  --font-sans: Georgia, "Times New Roman", serif;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Base ───────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 1rem;
}

/* ─── Header ─────────────────────────────────────────── */
header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
}

.wordmark span {
  color: var(--accent);
}

.wordmark:hover {
  color: var(--text);
}

/* ─── Main ───────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 4rem;
}

/* ─── Card ───────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 560px;
}

.card h1 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ─── Fields ─────────────────────────────────────────── */
.field {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

textarea,
input[type="password"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}

textarea:focus,
input[type="password"]:focus {
  border-color: var(--accent);
}

textarea::placeholder,
input[type="password"]::placeholder {
  color: var(--muted);
}

/* ─── URL / Secret display boxes ─────────────────────── */
.url-box,
.secret-value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  word-break: break-all;
  color: var(--accent);
  line-height: 1.6;
  white-space: pre-wrap;
}

.secret-value {
  color: var(--text);
  font-size: 0.9rem;
}

/* ─── Button ─────────────────────────────────────────── */
button[type="submit"] {
  display: inline-block;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s, transform 0.1s;
}

button[type="submit"]:hover {
  background: var(--accent-dk);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

/* ─── Link button ────────────────────────────────────── */
.btn-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Warnings / hints ───────────────────────────────── */
.warn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warn);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
