* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #eee;
}

.login-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-card h1 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: #aaa;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.25);
}

.form-group input::placeholder {
  color: #666;
}

button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #4a9eff;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #3a8eef;
}

button:active {
  background: #2a7edf;
}

.error {
  margin-top: 1rem;
  padding: 0.6rem;
  font-size: 0.875rem;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
  border-radius: 6px;
  display: none;
}

.error.visible {
  display: block;
}

.step-description {
  color: #aaa;
  font-size: 0.875rem;
  margin: -0.5rem 0 1rem 0;
}

.step.hidden {
  display: none;
}

.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #4a9eff;
}

.form-group select option {
  background: #1a1a2e;
  color: #fff;
}

.connection-settings-icon {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.connection-settings-icon:hover {
  color: #4a9eff;
}

.connection-settings-icon svg {
  width: 24px;
  height: 24px;
}
