/* Authentication Modal and User Dropdown Styles */

/* User Dropdown */
.user-dropdown .btn-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.user-dropdown .btn-link:hover {
  opacity: 0.8;
}

.user-dropdown .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
}

.user-dropdown .dropdown-item {
  padding: 0.75rem 1.25rem;
  transition: background-color 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
}

.user-dropdown .dropdown-item i {
  color: #dc3545;
}

/* Auth Modal */
#authModal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#authModal .modal-header {
  padding: 2rem 2rem 1rem;
}

#authModal .modal-body {
  padding: 0 2rem 2rem;
}

#authModal .modal-title {
  font-size: 1.75rem;
  color: #1a1a1a;
}

#authModal .btn-close {
  font-size: 1.25rem;
}

/* Form Styles */
#authModal .form-label {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#authModal .form-control,
#authModal .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#authModal .form-control:focus,
#authModal .form-select:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

#authModal .form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}

#authModal .form-control.is-invalid,
#authModal .form-select.is-invalid {
  border-color: #dc3545;
}

#authModal .invalid-feedback {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Input Group */
#authModal .input-group .btn-outline-secondary {
  border: 2px solid #e0e0e0;
  border-left: none;
  background-color: transparent;
  color: #666;
}

#authModal .input-group .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  color: #333;
}

#authModal .input-group .form-control {
  border-right: none;
}

#authModal .input-group .form-control:focus + .btn-outline-secondary {
  border-color: #dc3545;
}

#authModal .btn-link {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
}

#authModal .btn-link:hover {
  color: #333;
}

/* Divider */
#authModal hr {
  border-top: 1px solid #e0e0e0;
  opacity: 1;
}

/* Links */
#authModal a {
  transition: color 0.2s ease;
}

#authModal a:hover {
  opacity: 0.8;
}

/* Form Check */
#authModal .form-check-input {
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

#authModal .form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

#authModal .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
}

#authModal .form-check-label {
  cursor: pointer;
  user-select: none;
}

/* Password Strength Indicator */
.password-strength {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.password-strength-weak {
  width: 33%;
  background-color: #dc3545;
}

.password-strength-medium {
  width: 66%;
  background-color: #ffc107;
}

.password-strength-strong {
  width: 100%;
  background-color: #28a745;
}

/* Responsive */
@media (max-width: 576px) {
  #authModal .modal-dialog {
    margin: 0.5rem;
  }

  #authModal .modal-header {
    padding: 1.5rem 1.5rem 0.75rem;
  }

  #authModal .modal-body {
    padding: 0 1.5rem 1.5rem;
  }

  #authModal .modal-title {
    font-size: 1.5rem;
  }

  #authModal .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Loading State */
#authModal button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#authModal .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Toast Container */
#toastContainer .toast {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#toastContainer .toast-body {
  padding: 1rem 1.25rem;
  font-weight: 500;
}
