:root {
  --bg: #0a0e27;
  --card: #1a1f3a;
  --primary: #4a9fb8;
  --secondary: #b85a7a;
  --text: #d1d5db;
  --text-muted: #9ca3af;
  --border: rgba(74, 159, 184, 0.2);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#app { min-height: 100vh; }

#auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-header { text-align: center; margin-bottom: 0; }
.logo { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.subtitle { color: var(--text-muted); margin: 0 0 32px; }
.card {
  width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.input-row { margin-bottom: 16px; }
.input-row label { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 4px; }
.input-row input {
  width: 100%; padding: 12px 16px; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(30, 41, 59, 0.5); color: var(--text);
}
.input-row input::placeholder { color: var(--text-muted); }
.btn {
  width: 100%; padding: 14px; font-size: 1rem; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer; margin-top: 8px;
}
.btn.primary { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; }
.btn.primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn.secondary { background: var(--card); color: var(--primary); border: 1px solid var(--border); margin-top: 16px; }
.btn.link { background: none; color: var(--primary); margin-top: 24px; }
.btn.link:hover { text-decoration: underline; }

#main-screen { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 60px; }
.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--border); padding: 0 8px; gap: 4px; }
.tab { flex: 1; padding: 12px 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; background: none; border: none; color: var(--text-muted); cursor: pointer; }
.tab.active { color: var(--primary); }
.content { flex: 1; padding: 24px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane p { color: var(--text-muted); }

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 0.875rem; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
#toast.show { opacity: 1; }
#toast.error { border-color: #ef4444; color: #fca5a5; }
