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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #1a1f2e;
  color: #fff;
  min-height: 100vh;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: #252b3b;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.onboarding-card {
  max-width: 500px;
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #fff;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}

input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #3d4659;
  border-radius: 8px;
  background: #1a1f2e;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: #6366f1;
}

input::placeholder {
  color: #64748b;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #6366f1;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #818cf8;
}

.btn-secondary {
  padding: 8px 16px;
  border: 1px solid #6366f1;
  border-radius: 6px;
  background: transparent;
  color: #6366f1;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #6366f1;
  color: #fff;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.success-message {
  color: #22c55e;
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.auth-link a {
  color: #818cf8;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #64748b;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3d4659;
}

.divider span {
  padding: 0 16px;
  font-size: 14px;
}

h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.server-list {
  max-height: 300px;
  overflow-y: auto;
}

.server-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #1a1f2e;
  border-radius: 8px;
  margin-bottom: 8px;
}

.server-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
  color: #fff;
}

.server-info p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.server-info code {
  font-size: 11px;
  color: #818cf8;
  background: #252b3b;
  padding: 2px 6px;
  border-radius: 4px;
}

.loading,
.empty,
.error {
  text-align: center;
  color: #64748b;
  padding: 20px;
  font-size: 14px;
}

.error {
  color: #ef4444;
}