/* MongoDB Auth Plugin Styles */

/* Updated class names from pgauth to mongoauth */
.mongoauth-login-form,
.mongoauth-user-profile {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mongoauth-form-group {
  margin-bottom: 15px;
}

.mongoauth-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.mongoauth-form-group input[type="text"],
.mongoauth-form-group input[type="password"],
.mongoauth-form-group input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.mongoauth-form-group input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.mongoauth-submit-btn {
  background: #0073aa;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  transition: background-color 0.3s;
}

.mongoauth-submit-btn:hover {
  background: #005a87;
}

.mongoauth-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.mongoauth-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.mongoauth-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mongoauth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mongoauth-profile-info {
  background: white;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.mongoauth-profile-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.mongoauth-profile-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mongoauth-profile-label {
  font-weight: bold;
  color: #333;
}

.mongoauth-profile-value {
  color: #666;
}

.mongoauth-status-active {
  color: #28a745;
  font-weight: bold;
}

.mongoauth-status-inactive {
  color: #dc3545;
  font-weight: bold;
}

.mongoauth-status-pending {
  color: #ffc107;
  font-weight: bold;
}

/* Added styles for MongoDB-specific features */
.mongoauth-profile-picture {
  border-radius: 50%;
  border: 2px solid #ddd;
  max-width: 80px !important;
  height: auto;
}

.mongoauth-dancer-of-week {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white !important;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mongoauth-password-change {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.mongoauth-password-change h4 {
  margin-top: 0;
  color: #333;
}

.mongoauth-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Responsive design */
@media (max-width: 480px) {
  .mongoauth-login-form,
  .mongoauth-user-profile {
    margin: 10px;
    padding: 15px;
  }

  .mongoauth-profile-row {
    flex-direction: column;
  }

  .mongoauth-profile-label {
    margin-bottom: 5px;
  }

  .mongoauth-profile-picture {
    max-width: 60px !important;
  }
}
