/* Memberstack Cornerstone Frontend Styles */
.ms-cs-form-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

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

.ms-cs-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.ms-cs-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.ms-cs-submit-button {
  width: 100%;
  padding: 0.75rem;
  background: #3898ec;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.ms-cs-button {
  padding: 0.75rem 1.5rem;
  background: #3898ec;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.ms-cs-social-buttons {
  margin-top: 1rem;
}

.social-separator {
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.social-separator:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.social-separator span {
  background: white;
  padding: 0 1rem;
  color: #666;
  position: relative;
}

.social-button {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.social-button.google {
  background: #4285f4;
  color: white;
}

/* Loading States */
.ms-cs-button.loading,
.ms-cs-submit-button.loading,
.ms-cs-profile-upload.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.ms-cs-button.loading::after,
.ms-cs-submit-button.loading::after,
.ms-cs-profile-upload.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: ms-cs-spin 1s linear infinite;
}

@keyframes ms-cs-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Clicked Animation */
.ms-cs-button.clicked {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Notification System */
.ms-cs-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-width: 300px;
  font-size: 14px;
}

.ms-cs-notification.show {
  transform: translateX(0);
}

.ms-cs-notification--success {
  background: #28a745;
}

.ms-cs-notification--error {
  background: #dc3545;
}

.ms-cs-notification--info {
  background: #17a2b8;
}

.ms-cs-notification--warning {
  background: #ffc107;
  color: #000;
}

/* Form Loading States */
.ms-cs-form.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Profile Image Upload States */
.ms-cs-profile-upload:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

.ms-cs-profile-image-inner {
  transition: all 0.3s ease;
}

.ms-cs-profile-image-inner:hover {
  transform: scale(1.02);
}

/* Social Button Enhancements */
.social-button {
  transition: all 0.2s ease;
}

.social-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-button.loading {
  pointer-events: none;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .ms-cs-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100%);
  }

  .ms-cs-notification.show {
    transform: translateY(0);
  }
}
