/* Auth Pages */
.auth-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.signup-container {
  max-width: 1400px;
}

.auth-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signup-card {
  padding: 2rem 3rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.auth-subtitle {
  color: var(--gray-600);
}

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.input-group {
  position: relative;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.input-group .form-input {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--gray-600);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-300);
  z-index: 1;
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  background: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.google-btn:hover {
  border-color: #db4437;
  color: #db4437;
}

.linkedin-btn:hover {
  border-color: #0077b5;
  color: #0077b5;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-illustration {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(147, 197, 253, 0.1)
  );
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.illustration-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.illustration-text p {
  color: var(--gray-600);
}

/* Password Reset Modal */
.password-reset-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.password-reset-modal.show {
  display: flex;
}

.password-reset-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.3s ease-out;
}

.password-reset-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.password-reset-header p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.password-reset-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.password-reset-close:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Multi-step Form */
.form-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gray-300);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0.75rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.step:hover {
  transform: scale(1.05);
}

.step.active {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: scale(1.1);
}

.step.completed {
  background-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 2rem;
  height: 2px;
  background: var(--gray-300);
  transform: translateY(-50%);
}

.step.active::after,
.step.completed::after {
  background: var(--primary-color);
}

.step:last-child::after {
  display: none;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group .checkbox-label {
  flex: 0 0 auto;
}

.terms-label {
  font-size: 0.875rem;
  line-height: 1.4;
}

.terms-label a {
  color: var(--primary-color);
  text-decoration: none;
}

.terms-label a:hover {
  text-decoration: underline;
}

.password-strength {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.strength-weak {
  color: var(--danger-color);
}
.strength-medium {
  color: var(--warning-color);
}
.strength-strong {
  color: var(--success-color);
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
    margin: 1rem;
    max-width: 95vw;
  }

  .auth-illustration {
    display: none;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .signup-card {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }

  .auth-form {
    width: 100%;
  }

  .form-input,
  .form-select {
    font-size: 16px;
    min-height: 44px;
  }

  .form-title {
    font-size: 1.25rem;
  }

  .form-steps {
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
  }

  .step {
    min-width: 100px;
    font-size: 0.85rem;
  }

  /* Tablet password field icon positioning */
  .input-group .form-input {
    padding-left: 2.25rem;
    padding-right: 2.5rem;
  }

  .input-icon {
    left: 0.625rem;
    font-size: 1rem;
  }

  .password-toggle {
    right: 0.625rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: 1rem;
    min-height: auto;
  }

  .auth-container {
    margin: 0;
    border-radius: 12px;
  }

  .auth-card {
    padding: 1.5rem 1rem;
  }

  .signup-card {
    padding: 1.25rem;
  }

  .auth-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .auth-subtitle {
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    min-height: 44px;
    padding: 0.75rem;
    width: 100%;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
  }

  button,
  .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.875rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .btn-social {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .form-options {
    flex-direction: column;
    gap: 0.75rem;
  }

  .checkbox-label {
    font-size: 0.85rem;
    min-height: 44px;
    align-items: center;
  }

  .forgot-password {
    font-size: 0.85rem;
  }

  .auth-divider {
    font-size: 0.8rem;
    margin: 1rem 0;
  }

  .form-navigation {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .form-navigation button {
    width: 100%;
  }

  /* Improve signup step circles on mobile */
  .form-steps {
    gap: 0.25rem;
    margin: 1rem 0;
  }

  .step {
    width: 42px;
    height: 42px;
    margin: 0 0.5rem;
    font-size: 1rem;
  }

  .step::after {
    width: 1.25rem;
  }

  .checkbox-group {
    gap: 0.75rem;
  }

  .checkbox-group .checkbox-label {
    flex: 0 0 100%;
  }

  .terms-label {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .password-strength {
    font-size: 0.7rem;
  }

  .input-icon {
    left: 0.5rem;
  }

  .password-toggle {
    right: 0.5rem;
    font-size: 1.125rem;
  }

  .input-group .form-input {
    padding-right: 2.5rem;
    padding-left: 0.75rem;
  }
}
