/* ===== AUTH PAGES STYLES ===== */

/* Auth Page Layout */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.auth-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.navbar-auth {
  background: transparent;
  border-bottom: none;
}

.navbar-auth .container {
  height: 5rem;
}

.auth-prompt {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* Auth Main */
.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  padding: 2rem 1.5rem;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  max-width: 1000px;
  width: 100%;
}

.login-container {
  grid-template-columns: 480px 1fr;
}

/* Auth Card */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.auth-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* Register Steps */
.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  border-radius: 50%;
  transition: all var(--transition);
}

.step-indicator.active .step-num {
  color: var(--white);
  background: var(--primary-gradient);
}

.step-indicator.completed .step-num {
  color: var(--white);
  background: var(--success);
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-indicator.active .step-label {
  color: var(--primary);
}

.step-indicator.completed .step-label {
  color: var(--success);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
}

.required {
  color: var(--danger);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper input::placeholder {
  color: var(--gray-400);
}

.input-wrapper input.error,
.input-wrapper select.error {
  border-color: var(--danger);
}

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

.input-error {
  font-size: 0.8125rem;
  color: var(--danger);
  min-height: 1.25rem;
}

/* Toggle Password */
.toggle-password {
  position: absolute;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  transition: color var(--transition);
}

.toggle-password:hover {
  color: var(--gray-600);
}

.toggle-password svg {
  position: static;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.strength-bar.weak span {
  width: 33%;
  background: var(--danger);
}

.strength-bar.medium span {
  width: 66%;
  background: var(--warning);
}

.strength-bar.strong span {
  width: 100%;
  background: var(--success);
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 60px;
}

.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions .btn {
  flex: 1;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

/* Checkbox */
.checkbox-group {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  transition: all var(--transition);
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 0.375rem;
  height: 0.625rem;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 0.125rem;
}

.checkbox-label a {
  color: var(--primary);
  font-weight: 500;
}

/* Summary Card */
.summary-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.summary-section {
  margin-bottom: 1.25rem;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.summary-section h4 svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.summary-row span {
  color: var(--gray-500);
}

.summary-row strong {
  color: var(--gray-900);
}

.plan-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: var(--radius);
}

.plan-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.plan-price {
  font-weight: 700;
  color: var(--primary);
}

.plan-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Success Step */
.success-step {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: #d1fae5;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--success);
}

.success-step h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.success-step p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.success-actions {
  display: flex;
  justify-content: center;
}

/* Alert Messages */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.alert-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Social Login */
.social-login {
  display: flex;
  gap: 1rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-social:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-social:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.auth-footer p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* Auth Features */
.auth-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-features h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.auth-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
}

.auth-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
  flex-shrink: 0;
}

/* Login Features Showcase */
.login-features {
  padding: 2rem;
}

.features-showcase h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.showcase-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.showcase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.showcase-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.showcase-icon.blue { background: var(--primary-light); color: var(--primary); }
.showcase-icon.green { background: #d1fae5; color: var(--success); }
.showcase-icon.orange { background: #fef3c7; color: var(--warning); }

.showcase-card strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.showcase-card span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  background: var(--white);
  padding: 2rem 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.spinner-small {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Button loading state */
.btn-text,
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .login-container {
    grid-template-columns: 1fr;
  }
  
  .auth-features {
    display: none;
  }
  
  .login-features {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .register-steps {
    padding: 0;
  }
  
  .step-line {
    width: 30px;
  }
  
  .step-label {
    font-size: 0.6875rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .social-login {
    flex-direction: column;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .navbar-auth .auth-prompt {
    display: none;
  }
}

.user-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.user-type-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.user-type-card:hover {
  border-color: #3b82f6;
}

.user-type-card.selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.user-type-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
}

.user-type-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}
