/* Auth Section */
.auth-section {
  padding-top: 1rem;
}

/* Auth Feature Cards */
.auth-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.2s ease;
}

.auth-feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.auth-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Auth Card */
.auth-card {
  transition: all 0.3s ease;
}

.auth-card.auth-success {
  border-color: var(--success);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* Auth Steps */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.auth-step.active {
  color: var(--text-primary);
}

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

.auth-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.auth-step.active .auth-step-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.auth-step.completed .auth-step-dot,
.auth-step-dot.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.auth-step-line {
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: var(--border-color);
  transition: all 0.2s ease;
}

.auth-step-line.completed {
  background: var(--success);
}

/* Auth Step Icon (header) */
.auth-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.auth-step-icon.active {
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Auth Input */
.auth-input-wrapper {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Auth OTP Input */
.auth-otp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-otp-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.auth-otp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-otp-input:not(:placeholder-shown) {
  border-color: var(--success);
}

.auth-otp-separator {
  color: var(--text-muted);
  font-weight: 600;
}

/* Auth Submit Button */
.auth-submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  transition: all 0.2s ease;
}

.auth-submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.auth-submit-btn .btn-text,
.auth-submit-btn .btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-submit-btn .btn-loading {
  display: none;
}

.auth-submit-btn.loading .btn-text {
  display: none;
}

.auth-submit-btn.loading .btn-loading {
  display: flex;
}

/* Auth Spinner */
.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
}

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

/* Auth Status Messages */
.auth-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  animation: authStatusFade 0.3s ease;
}

@keyframes authStatusFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-status-info {
  background: var(--info-bg);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--info);
}

.auth-status-info i {
  animation: authSpin 1s linear infinite;
}

.auth-status-success {
  background: var(--success-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.auth-status-error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.auth-status-warning {
  background: var(--warn-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

/* Auth Telegram Preview */
.auth-telegram-preview {
  padding: 16px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.auth-telegram-message {
  padding: 12px;
  border-radius: var(--border-radius-md);
  background: var(--bg-surface);
  border-left: 3px solid var(--info);
}

/* Fade Up Animation */
.fade-up {
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

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

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Responsive Auth */
@media (max-width: 768px) {
  .auth-feature-card {
    padding: 12px;
  }
  
  .auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  
  .auth-otp-input {
    width: 38px;
    height: 46px;
    font-size: 18px;
  }
  
  .auth-otp-container {
    gap: 6px;
  }
  
  .auth-steps {
    gap: 6px;
  }
  
  .auth-step-dot {
    width: 28px;
    height: 28px;
  }
  
  .auth-step-line {
    max-width: 30px;
  }
}

@media (max-width: 480px) {
  .auth-otp-input {
    width: 34px;
    height: 42px;
    font-size: 16px;
  }
  
  .auth-otp-separator {
    display: none;
  }
}

/* ================================
   Compact Profile Styles
   ================================ */

