/* MM User Authentication Styles - Login and Registration Forms */

.mm-user-auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 1rem;
  background-color: #f8f9fa;
}

.mm-user-auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  border: 1px solid #e9ecef;
}

.mm-user-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mm-user-auth-header h2 {
  color: #2c3e50;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.mm-user-auth-header p {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

.mm-user-form-group {
  margin-bottom: 1.5rem;
}

.mm-user-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #495057;
  font-weight: 500;
  font-size: 0.9rem;
}

.mm-user-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.mm-user-form-control:focus {
  outline: 0;
  border-color: #4285f4;
  box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
}

.mm-user-form-control::placeholder {
  color: #adb5bd;
}

.mm-user-form-help {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.mm-user-form-actions {
  margin-bottom: 1.5rem;
}

.mm-user-form-submit,
.mm-user-btn-primary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.mm-user-form-submit:hover,
.mm-user-btn-primary:hover {
  background-color: #3367d6;
}

.mm-user-form-submit:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.mm-user-form-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.mm-user-form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e9ecef;
}

.mm-user-form-divider span {
  background-color: white;
  color: #6c757d;
  padding: 0 1rem;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.mm-user-social-login {
  margin-bottom: 1.5rem;
}

.mm-user-btn-google {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.mm-user-btn-google:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mm-user-google-icon {
  width: 20px;
  height: 20px;
}

.mm-user-form-links {
  text-align: center;
  margin-top: 1rem;
}

.mm-user-link {
  color: #4285f4;
  text-decoration: none;
  font-size: 0.9rem;
}

.mm-user-link:hover {
  text-decoration: underline;
}

.mm-user-auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.mm-user-auth-footer p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.mm-user-link-primary {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
}

.mm-user-link-primary:hover {
  text-decoration: underline;
}

/* Loading spinner */
.mm-user-loading {
  text-align: center;
  padding: 1rem;
}

.mm-user-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4285f4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: mm-user-spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes mm-user-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Messages */
.mm-user-messages .messages {
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.mm-user-messages .messages--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.mm-user-messages .messages--status {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* Responsive design */
@media (max-width: 576px) {
  .mm-user-auth-container {
    padding: 1rem;
  }

  .mm-user-auth-card {
    padding: 1.5rem;
  }

  .mm-user-auth-header h2 {
    font-size: 1.5rem;
  }
}
