/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500&display=swap');

:root {
  --auth-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === CONTENEUR PRINCIPAL === */
body,
html {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
}

.auth-container {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image:
    radial-gradient(rgba(12, 12, 12, 0.171) 1.5px, transparent 0),
    linear-gradient(135deg, #1448d7 0%, #3b7cf3 50%, #60a5fa 100%);
  background-size: 20px 20px, 100% 100%;
  background-position: -5px -5px, center;
  background-attachment: fixed;
  font-family: var(--auth-font);
}

/* === DECORATIVE ORBS === */
.auth-container::before,
.auth-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.auth-container::before {
  width: 400px;
  height: 400px;
  background: #2563eb;
  top: -100px;
  left: -100px;
}

.auth-container::after {
  width: 350px;
  height: 350px;
  background: #8b5cf6;
  bottom: -80px;
  right: -80px;
  animation-delay: -4s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, 20px);
  }
}

/* === WRAPPER DU FORMULAIRE === */
.auth-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BORDURE FLOUTÉE EN POINTILLÉS === */
.auth-card-border {
  padding: 10px;
  border: 2px dashed;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* === CARTE BLANCHE INTÉRIEURE === */
.auth-card-inner {
  background: white;
  border-radius: 22px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 12px 24px -8px rgba(0, 0, 0, 0.15);
  padding: clamp(1.9rem, 4vw, 2.5rem) clamp(1.4rem, 3.5vw, 2rem);
}

/* === LOGO === */
.auth-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo-img {
  width: clamp(42px, 5vw, 52px);
  max-width: 100%;
  border-radius: 10px;
}

/* === TITRE === */
.auth-title {
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
}

/* === FORMULAIRE === */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === CHAMPS DE FORMULAIRE === */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #374151;
  letter-spacing: 0.3px;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  font-family: var(--auth-font);
  box-sizing: border-box;
  font-weight: 500;
}

.auth-input:hover {
  border-color: #d1d5db;
}

.auth-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background-color: #fff;
}

.auth-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* === MENTION LEGALE === */
.auth-legal-notice {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
    margin: 0.5rem 0;
}
.auth-legal-notice a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.auth-legal-notice a:hover {
    text-decoration: underline;
}

/* === BOUTON DE SOUMISSION === */
.auth-submit-button {
  width: 100%;
  background: #2563eb;
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9375rem;
  font-family: var(--auth-font);
  margin-top: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-submit-button:active {
  transform: scale(0.98);
}

.auth-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === LIENS EN BAS === */
.auth-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
}

.auth-toggle-button {
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: var(--auth-font);
  font-weight: 400;
}

.auth-toggle-button:hover {
  color: #2563eb;
}

.auth-footer-links {
  display: flex;
  gap: 0.875rem;
}

.auth-footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
}

.auth-footer-link:hover {
  color: #2563eb;
}

/* === LIEN RETOUR À L'ACCUEIL === */
.auth-back-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-back-button {
  color: white;
  font-size: 0.8125rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--auth-font);
  font-weight: 400;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.auth-back-button:hover {
  opacity: 1;
}

/* === MESSAGES D'ERREUR === */
.auth-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin-bottom: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.auth-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin-bottom: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

/* === SEPARATOR === */
.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.auth-separator span {
  padding: 0 10px;
  color: #9ca3af;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === EMAIL INFO === */
.auth-email-info {
  text-align: center;
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 400;
}

.auth-email-highlight {
  color: #1f2937;
  font-weight: 400;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .auth-card-inner {
    padding: 2rem 1.5rem;
  }

  .auth-content-wrapper {
    padding: 1rem;
  }

  .auth-logo-img {
    width: 44px;
  }

  .auth-form-container {
    max-width: 100%;
  }

  .auth-container::before {
    width: 250px;
    height: 250px;
  }

  .auth-container::after {
    width: 200px;
    height: 200px;
  }
}