/* Authentication Styles */

/* Admin Login Link */
.admin-login {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.admin-login a {
    color: var(--dark-color);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.admin-login a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Form Styling */
.auth-form {
  max-width: 500px;
  margin: 0 auto;
}

.auth-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-form .form-group.success input {
  border-color: #28a745;
}

.auth-form .form-group.error input {
  border-color: #dc3545;
}

.auth-form .validation-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.auth-form .form-group.error .validation-error {
  display: block;
}

/* Password Strength Meter */
.password-strength {
  margin-top: 5px;
  height: 5px;
  border-radius: 5px;
  background-color: #eee;
  overflow: hidden;
}

.password-strength-meter {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
  font-size: 0.85rem;
  margin-top: 5px;
}

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

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

.strength-good {
  background-color: #17a2b8;
  width: 75%;
}

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

/* Notification System */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.notification {
  background-color: #17a2b8;
  color: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300px;
  max-width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.notification.error {
  background-color: #dc3545;
}

.notification.warning {
  background-color: #ffc107;
  color: #212529;
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.notification-message {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 10px;
  margin-top: -5px;
}

.notification.warning .notification-close {
  color: #212529;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
  display: inline-block;
}

.user-profile-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.user-profile-dropdown .dropdown-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-profile-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.user-profile-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-profile-dropdown .dropdown-menu-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.user-profile-dropdown .dropdown-menu-body {
  padding: 10px 0;
}

.user-profile-dropdown .dropdown-menu-footer {
  padding: 10px 15px;
  border-top: 1px solid #eee;
}

.user-profile-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.user-profile-dropdown .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-profile-dropdown .dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* User Avatar */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 10px;
}

.user-avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.user-avatar.lg {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

/* Modal Styles */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.auth-modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
}

.auth-modal-close:hover {
  color: var(--primary-color);
}

.auth-modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--dark-color);
}

.auth-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 576px) {
  .auth-modal-content {
    width: 90%;
    padding: 20px;
  }
  
  .notification {
    width: 90%;
    margin-right: 5%;
  }
}