/* Center the submit button inside form-group and add loading spinner */
.form-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
  position: relative;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: sb-spin 0.6s linear infinite;
}

@keyframes sb-spin {
  to { transform: rotate(360deg); }
}
/* Minimal auth styles inspired by popup */
.login-form, .form {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.form-group { margin: 12px 0; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; color: #374151; }
.form-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.form-input.warn { border-color: #ef4444; }
.btn {
  display: inline-block;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: normal;
  font-size: 1rem;
  cursor: pointer;
}
.btn.disabled { opacity: 0.6; cursor: not-allowed; }
.msg { margin-top: 8px; color: #111827; }
.msg.warn { color: #ef4444; }
