/* Contact Support Page Specific Styles */

/* Variables CSS pour les thèmes */
:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --success-color: #10b981;
  --primary-color: #2563eb;
}

/* Thème sombre */
.dark {
  --bg-primary: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.9);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #475569;
  --border-focus: #60a5fa;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -2px rgb(0 0 0 / 0.2);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 10px 10px -5px rgb(0 0 0 / 0.3);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sélecteur de langue */
.language-selector {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.language-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.language-select:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.language-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.dark .language-select {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.dark .language-select:focus {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.dark body {
  background: var(--bg-primary);
}

/* Toggle thème */
.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.theme-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.dark .theme-btn {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: #fbbf24;
}

.theme-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.dark .theme-btn .icon {
  color: #fbbf24;
}

/* Container principal */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

/* Carte de connexion */
.login-card {
  width: 100%;
  max-width: 32rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
}

.dark .login-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-color: var(--border-color);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--blue-100);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.dark .icon-container {
  background: rgba(59, 130, 246, 0.2);
}

.icon-container.success {
  background-color: rgba(16, 185, 129, 0.1);
}

.dark .icon-container.success {
  background-color: rgba(16, 185, 129, 0.2);
}

.lock-icon {
  width: 2rem;
  height: 2rem;
  color: var(--blue-600);
}

.dark .lock-icon {
  color: #60a5fa;
}

.title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Formulaire */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
}

.textarea-icon {
  top: 0.75rem;
  transform: none;
}

.input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.dark .input {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.dark .input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Styles spécifiques pour le textarea */
.textarea-input {
  min-height: 120px;
  resize: vertical;
  padding-top: 0.75rem;
  padding-left: 2.5rem;
  line-height: 1.5;
  font-family: inherit;
}

/* Styles pour les options de priorité */
.input option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px;
}

.dark .input option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Message d'erreur */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  border-radius: 0.5rem;
  color: var(--red-600);
  font-size: 0.875rem;
}

.dark .error-message {
  background: rgba(127, 29, 29, 0.3);
  border-color: var(--red-800);
  color: var(--red-400);
}

.error-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--red-500);
}

/* Message de succès */
.success-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
}

.success-icon {
  width: 24px;
  height: 24px;
  color: var(--success-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.success-content {
  flex: 1;
}

.success-content p {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* Avis de sécurité */
.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  margin-bottom: 24px;
}

.dark .security-notice {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.security-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.security-text {
  flex: 1;
}

.security-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 14px;
}

.security-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Étapes suivantes */
.next-steps {
  margin-bottom: 32px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.next-steps h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.steps-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Boutons d'action */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--slate-900);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  background: var(--slate-600);
  cursor: not-allowed;
  transform: none;
}

.dark .login-btn {
  background: var(--blue-600);
}

.dark .login-btn:hover {
  background: var(--blue-700);
}

.dark .login-btn:disabled {
  background: var(--slate-600);
}

.login-btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.login-btn.primary:hover {
  background-color: #1d4ed8;
}

.login-btn.secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.login-btn.secondary:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Correction pour les boutons de la page de confirmation */
.action-buttons .login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.action-buttons .login-btn.primary {
  font-weight: 600;
}

.action-buttons .login-btn.secondary {
  font-weight: 500;
}

/* Styles pour les boutons de chat */
.chat-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.chat-support-btn:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

/* Spinner de chargement */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Liens */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.link-primary {
  background: none;
  border: none;
  color: var(--blue-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-primary:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.dark .link-primary {
  color: #60a5fa;
}

.dark .link-primary:hover {
  color: #93c5fd;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-secondary {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-secondary:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Classes utilitaires */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 0.5rem;
  }
  
  .login-card {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }
  
  .language-selector {
    top: 1rem;
    left: 1rem;
  }
  
  .theme-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .theme-btn .icon {
    width: 1rem;
    height: 1rem;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .icon-container {
    width: 3rem;
    height: 3rem;
  }
  
  .lock-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .security-notice {
    padding: 12px;
    gap: 10px;
  }
  
  .security-icon {
    width: 18px;
    height: 18px;
  }
  
  .security-title {
    font-size: 13px;
  }
  
  .security-description {
    font-size: 12px;
  }
  
  .success-message {
    padding: 16px;
    gap: 10px;
  }
  
  .success-icon {
    width: 20px;
    height: 20px;
  }
  
  .success-content p {
    font-size: 14px;
  }
  
  .next-steps {
    padding: 16px;
  }
  
  .next-steps h3 {
    font-size: 16px;
  }
  
  .steps-list li {
    font-size: 13px;
  }
  
  .steps-list li::before {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  
  .action-buttons {
    gap: 10px;
  }
  
  .textarea-input {
    min-height: 100px;
    padding-left: 2.25rem;
  }
  
  .textarea-icon {
    left: 0.625rem;
    top: 0.625rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1rem;
  }
  
  .form {
    gap: 1rem;
  }
  
  .input {
    padding: 0.625rem 0.625rem 0.625rem 2.25rem;
  }
  
  .input-icon {
    left: 0.625rem;
    width: 1rem;
    height: 1rem;
  }
  
  .textarea-input {
    min-height: 80px;
    font-size: 14px;
  }
}