*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

h1, h2 { color: #fff; }

.hidden { display: none !important; }

.overlay {
  position: fixed;
  inset: 0;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.login-box {
  background: #16213e;
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
}

.login-box h2 { text-align: center; }

input[type="password"], textarea {
  background: #0f3460;
  border: 1px solid #333;
  color: #e0e0e0;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  resize: vertical;
}

input[type="password"]:focus, textarea:focus {
  outline: none;
  border-color: #e94560;
}

button {
  background: #e94560;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.15s;
}

button:hover { opacity: 0.85; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.error { color: #e94560; font-size: 0.85rem; }

#app {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label { font-size: 0.85rem; color: #aaa; margin-top: 0.5rem; }

textarea { width: 100%; }

#status { font-size: 0.85rem; color: #aaa; }

.btn-row { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
