/* ============================================
   LOGIN & REGISTER PAGES - Design Professionnel
   ============================================ */

.login-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.login-body .header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-body .header__menu-link {
  color: #fff;
}

.login-body .header__menu-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.login-body .header__menu-button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-body .header__menu-button:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 1rem;
  margin: 0;
}

.login-container {
  background-color: #fff;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-height: 550px;
}

@media (min-width: 768px) {
  .login-container {
    min-height: 600px;
  }
}

.login-container--register {
  min-height: auto;
}

@media (min-width: 768px) {
  .login-container--register {
    min-height: 700px;
  }
}

.login-content-left {
  width: 100%;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .login-content-left {
    width: 50%;
    padding: 3rem;
  }
}

.login-content-right {
  display: none;
  width: 50%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .login-content-right {
    display: block;
  }
}

.login-content-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-heading {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.login-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.input-container {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: #6b7280;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-container img.input-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.input-container i.input-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-container input,
.input-container select {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  font-size: 1rem;
  color: #1f2937;
  transition: all 0.2s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-container select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.input-container input:focus,
.input-container select:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-container input.error,
.input-container select.error {
  border-color: #ef4444;
  background: #fff;
}

.input-container input.error:focus,
.input-container select.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.login-button {
  width: 100%;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
  margin-bottom: 1.5rem;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.forgot-password {
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1rem;
}

.forgot-password a {
  color: #6b7280;
  transition: color 0.2s ease;
  text-decoration: none;
}

.forgot-password a:hover {
  color: #6366f1;
}

.login-link {
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
  display: block;
  margin-top: 1rem;
}

.login-link span {
  color: #6366f1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-link:hover {
  text-decoration: none;
}

.login-link:hover span {
  color: #4f46e5;
}

/* Footer dans les pages login/register */
.login-body footer {
  background: transparent;
  margin-top: 0;
}

.login-body .footer {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-body .footer p {
  color: rgba(255, 255, 255, 0.8);
}

.login-body .footer a {
  color: rgba(255, 255, 255, 0.9);
}

.login-body .footer a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .login-wrapper {
    padding: 1rem;
  }
  
  .login-content-left {
    padding: 2rem 1.5rem;
  }
  
  .login-container {
    min-height: auto;
  }
}
