/* Lightweight base styles */
:root {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --border: #1f2937;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% 10%, #0b1228 0%, var(--bg) 60%);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  max-width: 720px;
  margin: 48px auto;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17,24,39,0.6), rgba(17,24,39,0.4));
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

h1, h2, h3 { margin: 0 0 16px; line-height: 1.2; }
p { margin: 0 0 12px; color: var(--muted); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Form */
form { display: grid; gap: 16px; margin-top: 12px; }
.field { display: grid; gap: 8px; }
label { color: var(--muted); font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  outline: none;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
input:disabled {
  opacity: 0.5;
  pointer-events: none;
}

button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: white;
  cursor: pointer;
}
button:hover { background: linear-gradient(180deg, #1d4ed8, #1e40af); }

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}
.muted { color: var(--muted); }

.welcome {
  margin-top: 6px;
  font-weight: 600;
}

.tweet-form { margin-top: 24px; display: grid; gap: 16px; }
.tweet-form textarea { width: 100%; min-height: 120px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border, #1f2937); background: #0b1220; color: var(--text, #e5e7eb); }
.tweet-form textarea:focus { border-color: var(--primary, #3b82f6); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.tweet-form__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.alert { padding: 12px 16px; border-radius: 10px; margin-top: 16px; }
.alert--success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.alert--error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.all-tweets { margin-top: 36px; display: grid; gap: 16px; }
.all-tweets__header { display: flex; justify-content: space-between; align-items: center; }
.all-tweets__header h2 { margin: 0; }
.tweet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tweet-card { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 12px 28px rgba(15,23,42,0.35); }
.tweet-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.08); box-shadow: 0 4px 12px rgba(15,23,42,0.4); }
.tweet-card__body { display: grid; gap: 8px; flex: 1; }
.tweet-card__meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted, #9ca3af); font-size: 0.85rem; }
.tweet-card__content { margin: 0; color: var(--text, #e5e7eb); white-space: pre-wrap; }