/* ====================================
   Carroll Software - Authentication Styles
   ==================================== */

/* Auth Message Styles */
.auth-message {
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-message-success {
  background-color: #10b981;
  color: #ffffff;
}

.auth-message-error {
  background-color: #ef4444;
  color: #ffffff;
}

.auth-message-info {
  background-color: #3b82f6;
  color: #ffffff;
}

/* Message Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Logged-in Nav Link Style */
.nav-link.logged-in {
  font-weight: 500;
  cursor: default;
}

.nav-link.logged-in span {
  text-decoration: underline;
  margin-left: 5px;
  cursor: pointer;
}

.nav-link.logged-in span:hover {
  opacity: 0.8;
}

/* Loading Button State */
button[disabled] {
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* Form Input Validation States */
.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Auth Container Enhancements */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
}

.auth-form {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
