/* Login Page Styles - Aligned with BeamLab Design System */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-page {
  display: flex;
  min-height: 100vh;
}

/* Left Side - Slider */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #282c3b 0%, #364356 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-header {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 100;
}

.login-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.login-logo img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.login-slider {
  width: 80%;
  max-width: 500px;
  text-align: center;
  color: white;
}

.slider-content {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.slider-image {
  width: 100%;
  min-height: 200px;
  max-height: 350px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.slider-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: rgba(255, 255, 255, 0.9);
}

.slider-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.slider-description {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Right Side - Form */
.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: #f7fafd;
  min-width: 500px;
}

.login-content {
  max-width: 400px;
  width: 100%;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #667eea;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 0.8;
}

.back-btn span {
  font-size: 1.5rem;
  position: relative;
  top: -1px;
  display: inline-block;
}

/* Alternative back button styling - if needed for different color scheme */
.back-btn {
  color: #667eea;
}

.login-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #282c3b;
  margin-bottom: 12px;
}

.login-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.5;
}

.step-container {
  margin-bottom: 24px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #282c3b;
  margin-bottom: 16px;
}

.step-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #b3c6e0;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fff;
  transition: all 0.2s;
}

.login-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.2);
}

.login-btn {
  width: 100%;
  padding: 12px 16px;
  background: #282c3b;
  color: #e0e6ed;
  border: 1px solid #4a5a7b;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
  background: #3a4a6b;
  border-color: #667eea;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.forgot-password-btn {
  background: transparent;
  border: 1px solid #667eea;
  color: #667eea;
  margin-top: 8px;
}

.forgot-password-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.2);
}

#auth-container {
  display: none;
}

#login-step {
  display: none;
}

#register-step {
  display: none;
}

.register-fields.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-container label {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-container a {
  color: #667eea;
  text-decoration: none;
}

.checkbox-container a:hover {
  text-decoration: underline;
}

.hidden-form {
  display: none;
}

/* Messages d'erreur et succès */
.error-message {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #c33;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.success-message {
  background-color: #efe;
  border: 1px solid #cfc;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #3c3;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .login-left {
    display: none;
  }

  .login-right {
    flex: none;
    width: 100%;
    min-width: auto;
    padding: 40px;
  }

  .login-header {
    position: fixed;
    top: 30px;
    left: 30px;
  }

  .login-logo {
    color: #282c3b;
  }

  .login-title {
    font-size: 2rem;
  }

  .login-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .login-right {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 1.8rem;
  }

  .login-input {
    padding: 12px 14px;
  }

  .back-btn {
    font-size: 1rem;
  }
}
