/* Page de Connexion - Design aligné sur onboarding */
* {
  box-sizing: border-box;
}

/* Container avec gradient - identique à onboarding */
.auth-container {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-gradient-primary);
  padding: 2rem;
  overflow: hidden;
}

/* Content centré - carte blanche moderne */
.auth-content {
  max-width: 480px;
  max-height: 90vh;
  width: 100%;
  text-align: center;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

/* Logo SVG moderne */
.auth-logo {
  width: 180px;
  height: auto;
  margin-bottom: 2rem;
}

/* Titre principal */
.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sp-color-text-primary);
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* Messages d'erreur - pastel doux */
.auth-error {
  background: #fce8e8;
  color: #8b3a3a;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: left;
}

.auth-error p {
  margin: 0;
  line-height: 1.5;
}

.auth-error a {
  color: #8b3a3a;
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}

/* Form groups */
.auth-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.auth-form-group label {
  display: block;
  font-weight: 600;
  color: var(--sp-color-text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.auth-form-group .sp-input {
  width: 100%;
}

/* Submit button */
.auth-submit {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
}

/* Liens secondaires en bas */
.auth-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sp-color-grey-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-link {
  color: var(--sp-color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-content {
    padding: 2.5rem 2rem;
    max-height: 95vh;
  }

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

  .auth-logo {
    width: 150px;
    margin-bottom: 1.5rem;
  }
}

@media (max-height: 700px) {
  .auth-content {
    padding: 2rem 2rem;
  }

  .auth-logo {
    width: 120px;
    margin-bottom: 1rem;
  }

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

  .auth-form-group {
    margin-bottom: 1rem;
  }

  .auth-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}
