:root {
  --bg: #0f1115;
  --card: #171a21;
  --text: #e6e8ec;
  --muted: #8b919e;
  --accent: #6ee7b7;
  --accent-hover: #34d399;
  --border: #262a33;
  --error: #f87171;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.subtitle { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.9rem; }

form label {
  display: block;
  margin-bottom: 1rem;
}

form label > span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

form label.inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea { resize: vertical; }

button {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #0f1115;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.hidden { display: none !important; }

.helper {
  margin: -0.5rem 0 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(110, 231, 183, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--muted);
}

.error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--error);
  border-radius: 6px;
  color: var(--error);
  font-size: 0.9rem;
}

#pw-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

#pw-status a {
  color: var(--accent);
  text-decoration: none;
}

#confirmation {
  text-align: center;
}

#confirmation h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

#confirmation p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

#confirmation code {
  background: var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}
