/* pour la page de login */

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container principal */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #ffff 0%, #f2c832 100%);
  padding: 1rem;
}

/* Background animé */
.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.auth-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(144, 141, 211, 0.1),
    rgba(17, 13, 24, 0.1)
  );
  backdrop-filter: blur(3px);
  animation: auth-float 6s ease-in-out infinite;
}

.auth-circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.auth-circle-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -100px;
  animation-delay: 2s;
}

.auth-circle-3 {
  width: 250px;
  height: 250px;
  bottom: -125px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

@keyframes auth-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(10px) rotate(-5deg);
  }
}

/* Card principale */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: auth-slideUp 0.6s ease-out;
}

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

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

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ffff, #f2c832);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px #ffeba1;
  animation: auth-pulse 2s ease-in-out infinite;
}

@keyframes auth-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px #ffeba1;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px #ffeba1;
  }
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffff, #f2c832);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: #64748b;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

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

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

.auth-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.auth-input-wrapper:focus-within {
  border-color: #ffff;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

.auth-input-icon {
  color: #9ca3af;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: #ffff;
}

.auth-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem 0;
  font-size: 1rem;
  color: #374151;
  outline: none;
  font-family: inherit;
}

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

.auth-password-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.auth-password-toggle:hover {
  color: #ffff;
  background: rgba(79, 70, 229, 0.1);
}

/* Options du formulaire */
.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.auth-forgot-link {
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-forgot-link:hover {
  color: #f2c832;
  text-decoration: underline;
}

/* Bouton de soumission */
.auth-submit-btn {
  background: linear-gradient(135deg, #ffff, #f2c832);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px #ffeba1;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.auth-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #ffeba1;
}

.auth-submit-btn:hover::before {
  left: 100%;
}

.auth-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px #ffeba1;
}

.auth-btn-arrow {
  transition: transform 0.2s ease;
}

.auth-submit-btn:hover .auth-btn-arrow {
  transform: translateX(4px);
}

/* Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.auth-divider-text {
  background: rgba(255, 255, 255, 0.95);
  color: #9ca3af;
  font-size: 0.875rem;
  padding: 0 1rem;
  position: relative;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
}

.auth-signup-text {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.auth-signup-link {
  color: #ffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-signup-link:hover {
  color: #f2c832;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
    margin-top: 1rem;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .auth-logo-icon {
    width: 56px;
    height: 56px;
  }

  .auth-social-buttons {
    grid-template-columns: 1fr;
  }

  .auth-circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
  }

  .auth-circle-2 {
    width: 150px;
    height: 150px;
    right: -75px;
  }

  .auth-circle-3 {
    width: 180px;
    height: 180px;
    bottom: -90px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-logo-icon {
    width: 48px;
    height: 48px;
  }

  .auth-input-wrapper {
    padding: 0 0.75rem;
  }

  .auth-input {
    padding: 0.875rem 0;
    font-size: 0.9rem;
  }

  .auth-submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Accessibilité et animations réduites */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .auth-circle {
    animation: none;
  }

  .auth-logo-icon {
    animation: none;
  }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  .auth-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.2);
  }

  .auth-subtitle,
  .auth-label {
    color: #d1d5db;
  }

  .auth-input {
    color: #f9fafb;
  }

  .auth-input::placeholder {
    color: #6b7280;
  }

  .auth-input-wrapper {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
  }

  .auth-input-wrapper:focus-within {
    background: rgba(31, 41, 55, 0.8);
  }

  .auth-social-btn {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    color: #d1d5db;
  }

  .auth-divider-text {
    background: rgba(17, 24, 39, 0.95);
  }

  .auth-signup-text,
  .auth-checkbox-label {
    color: #9ca3af;
  }

  .auth-checkmark {
    background: rgba(31, 41, 55, 0.5);
    border-color: #4b5563;
  }
}
