/* Main form container */
.multistep-login-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Step indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.step-indicator .step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2rem;
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-indicator .step.active {
  background: #007bff;
  color: #fff;
  transform: scale(1.1);
}

.step-indicator .step.completed {
  background: #28a745;
  color: #fff;
}

.step-indicator .step.completed::after {
  content: '✓';
  position: absolute;
  font-size: 20px;
}

/* Connection line between steps */
.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step-2 .step-indicator::before {
  background: linear-gradient(to right, #28a745 50%, #e9ecef 50%);
}

/* User info display */
.user-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid #dee2e6;
}

.user-info strong {
  color: #007bff;
}

/* Form elements */
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Error messages */
.messages--error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

/* Login links - UPDATED */
.login-links {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0;
  list-style: none;
}

.login-links li {
  list-style: none;
  margin: 0.5rem 0;
  display: block;
}

.login-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.login-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Buttons */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.step-1 .form-actions {
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-block {
  width: 100%;
}

/* Loading state */
.form-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive design */
@media (max-width: 480px) {
  .multistep-login-form {
    margin: 1rem;
    padding: 1.5rem;
  }

  .step-indicator .step {
    width: 35px;
    height: 35px;
    font-size: 14px;
    margin: 0 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .login-links a {
    font-size: 0.9rem;
  }
}

/* Animation for step transitions */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-2 .form-item {
  animation: slideIn 0.3s ease;
}

/* Create account button */
.create-account-btn {
  margin-top: 1rem;
  text-align: center;
  display: block;
  text-decoration: none !important;
}

.create-account-btn:hover {
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Adjust forgot password link */
.login-links {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 0;
  list-style: none;
}
