/* ===========================================================
   France Elastodontie - Styles modernes pour pages d'auth
   Préfixe fe-* pour éviter toute collision avec style.css
   =========================================================== */

.fe-auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fe-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.fe-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: fe-fadeIn 0.4s ease-out;
}

.fe-card-wide {
  max-width: 720px;
}

@keyframes fe-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fe-card-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 32px 32px 28px;
  text-align: center;
  color: #ffffff;
}

.fe-card-logo {
  width: auto;
  max-width: 200px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

.fe-card-logo img {
  max-width: 100%;
  height: auto;
}


.fe-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.fe-card-subtitle {
  font-size: 14px;
  opacity: 0.92;
  margin: 0;
}

.fe-card-body {
  padding: 32px;
}

.fe-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.fe-section-title:first-child {
  margin-top: 0;
}

.fe-field {
  margin-bottom: 18px;
}

.fe-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 560px) {
  .fe-field-row { grid-template-columns: 1fr; }
}

.fe-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.fe-label-required::after {
  content: " *";
  color: #dc2626;
}

.fe-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fe-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.fe-input::placeholder {
  color: #9ca3af;
}

.fe-input + .fe-input {
  margin-top: 8px;
}

.fe-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
}

.fe-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

.fe-checkbox-row label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}

.fe-btn-primary {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px -4px rgba(29, 78, 216, 0.4);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.fe-btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(29, 78, 216, 0.5);
}

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

.fe-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.fe-btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: #1d4ed8;
  border: 1px solid #1d4ed8;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.fe-btn-secondary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.fe-divider {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fe-link {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fe-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.fe-info-box {
  margin-top: 24px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 13px;
  color: #1e3a8a;
  text-align: center;
}

.fe-success-box {
  padding: 16px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.fe-error-box {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #b91c1c;
  font-size: 13px;
  margin-bottom: 16px;
}

.fe-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}

.fe-back-link:hover {
  text-decoration: underline;
}

.fe-back-link svg {
  width: 16px;
  height: 16px;
}
