/* TLDL Common Styles */
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --success: #22c55e;
  --success-bg: #14532d;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-bg: #7f1d1d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.centered {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 400px;
}

/* Typography */
h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Forms */
label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

input[type="text"],
input[type="url"],
input[type="email"],
select {
  width: 100%;
  background: var(--bg);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
button,
.btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  display: block;
  text-align: center;
}

button:hover,
.btn:hover {
  background: var(--primary-hover);
}

button:active,
.btn:active {
  transform: scale(0.98);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
}

/* Links */
.links {
  text-align: center;
  margin-top: 1.5rem;
}

.links a,
.help a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.links a:hover,
.help a:hover {
  text-decoration: underline;
}

.help {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
