/* =====================
   ENHANCED STYLES
   Additional styles for login and signup pages
===================== */

/* ===== Toast Notifications ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  justify-content: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast-icon {
  font-size: 20px;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(251, 146, 60, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-message {
  margin-top: 20px;
  color: var(--text-primary);
  font-size: 16px;
}

.loading-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ===== Confirm Dialog ===== */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.confirm-dialog {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  border: 2px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.confirm-dialog-title {
  margin: 0 0 15px;
  color: var(--accent-primary);
  font-size: 20px;
  text-align: center;
}

.confirm-dialog-message {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-dialog-buttons {
  display: flex;
  gap: 10px;
}

.confirm-dialog-buttons .btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.confirm-dialog-buttons .btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.confirm-dialog-buttons .btn-confirm {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

/* ===== Enhanced Form Styles ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
}

/* ===== Enhanced Button Styles ===== */
.btn-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: 0 8px 0 #334155;
}

.btn-secondary:hover {
  box-shadow: 0 10px 0 #334155;
}

.btn-secondary:active {
  box-shadow: 0 3px 0 #334155;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 0 #b91c1c;
}

.btn-danger:hover {
  box-shadow: 0 10px 0 #b91c1c;
}

.btn-danger:active {
  box-shadow: 0 3px 0 #b91c1c;
}

/* ===== Card Enhancements ===== */
.card-elevated {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--neon-glow);
}

/* ===== Status Badges ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}

.status-approved {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 480px) {
  .toast {
    min-width: auto;
    width: 90%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .confirm-dialog {
    padding: 20px;
  }
  
  .confirm-dialog-title {
    font-size: 18px;
  }
}

/* ===== Light Mode Enhancements ===== */
body.light-mode .toast {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.light-mode .confirm-dialog {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-mode .loading-overlay {
  background: rgba(248, 250, 252, 0.95);
}

body.light-mode .loading-message {
  color: #0f172a;
}
