/* Auth Pages - Typeform-style */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #fff 50%, var(--primary-light) 100%);
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  height: 36px;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

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

/* Auth Card */
.auth-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.auth-card .form-input {
  padding: 12px 14px;
  font-size: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.875rem;
}

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

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.auth-footer a {
  font-weight: 500;
}

/* Typeform-style Flow */
.flow-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.flow-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
}

.flow-logo {
  height: 28px;
}

.flow-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-progress-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.flow-progress-bar {
  width: 120px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.flow-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.flow-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.flow-step {
  width: 100%;
  max-width: 560px;
  display: none;
  animation: fadeUp 0.4s ease;
}

.flow-step.active {
  display: block;
}

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

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.flow-step-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.flow-step-desc {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.flow-step .form-input {
  padding: 14px 16px;
  font-size: 1.125rem;
  border-radius: 8px;
}

.flow-step .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.flow-step .form-select {
  padding: 14px 16px;
  font-size: 1.125rem;
  border-radius: 8px;
}

/* Option Cards for selection */
.flow-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flow-option {
  padding: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.flow-option:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.flow-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.flow-option-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gray-100);
}

.flow-option.selected .flow-option-icon {
  background: rgba(var(--primary-rgb), 0.12);
}

.flow-option-title {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.flow-option-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.flow-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
}

.flow-nav-btn.next {
  background: var(--primary);
  color: #fff;
}

.flow-nav-btn.next:hover {
  background: var(--primary-dark);
}

.flow-nav-btn.prev {
  background: transparent;
  color: var(--gray-600);
}

.flow-nav-btn.prev:hover {
  background: var(--gray-100);
}

.flow-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Keyboard hint */
.flow-keyboard-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 16px;
}

.flow-keyboard-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
