/* === STYLE LOGIN & REGISTER === */
/* Palette cohérente avec index.html :
   - Bleu clair de fond : #f5f7fb
   - Bleu turquoise principal : #02aeb2
   - Bleu turquoise foncé (hover) : #059199
   - Texte principal : #101828
   - Blanc : #ffffff
   - Gris clair bordures : #e2e8f0
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #101828;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Conteneur principal */
.login-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  width: 400px;
  max-width: 90vw;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #02aeb2 0%, #059199 100%);
}

/* Logo */
.login-logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto 1.25rem auto;
  mix-blend-mode: multiply;
}

.login-container h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Labels et inputs */
.login-container label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #475569;
}

.login-container input,
.login-container select {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #101828;
  background: #f8fafc;
  transition: all 0.2s ease;
  font-family: inherit;
}

.login-container input:focus,
.login-container select:focus {
  border-color: #02aeb2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 174, 178, 0.1);
  background: #fff;
}

.login-container input::placeholder {
  color: #94a3b8;
}

.login-container select {
  cursor: pointer;
}

/* Bouton principal */
.btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 0.6rem;
  border: none;
  background: linear-gradient(135deg, #02aeb2 0%, #059199 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 174, 178, 0.25);
  margin-top: 0.5rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 174, 178, 0.35);
}

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

/* Message d'erreur */
.error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  height: 1rem;
}

/* Lien vers l'autre page (Login/Register) */
.switch-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.switch-link a {
  color: #02aeb2;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.switch-link a:hover {
  color: #059199;
  text-decoration: underline;
}

/* Animation d'apparition */
.concept-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.concept-link a {
  color: #02aeb2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.concept-link a:hover {
  background: #fff;
  color: #059199;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .concept-link {
    position: relative;
    top: 0;
    right: 0;
    text-align: center;
    margin-bottom: 1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-container {
  animation: fadeIn 0.4s ease;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    width: 100%;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }
  
  .login-container h1 {
    font-size: 1.9rem;
  }
}
