/**
 * DesineXpress - Seller Auth Design System (3D Background & Responsive UI)
 * Features dual-mode rendering:
 * - Desktop / Laptop: 3D perspective depth, interactive mouse tilt, glowing mesh reflections
 * - Mobile: Ambient animated aurora spheres, thumb-friendly touch targets, full-width ergonomics
 */

:root {
  --sa-bg: #0b101b;
  --sa-card-bg: rgba(255, 255, 255, 0.94);
  --sa-card-border: rgba(255, 255, 255, 0.6);
  --sa-primary: #1a73e8;
  --sa-primary-dark: #1557b0;
  --sa-primary-glow: rgba(26, 115, 232, 0.35);
  --sa-accent: #8b5cf6;
  --sa-accent-glow: rgba(139, 92, 246, 0.3);
  --sa-cyan: #06b6d4;
  --sa-cyan-glow: rgba(6, 182, 212, 0.3);
  --sa-text: #0f172a;
  --sa-muted: #64748b;
  --sa-radius: 18px;
}

/* Background viewport */
html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--sa-text);
  overflow-x: clip;
}

/* 3D Background Canvas (Desktop/Laptop) */
#seller-3d-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Mobile Aurora Spheres Background */
.seller-aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  animation: auroraFloat 18s ease-in-out infinite alternate;
}

.aurora-sphere-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #2563eb 0%, rgba(37, 99, 235, 0) 70%);
  top: -80px;
  left: -80px;
  animation-duration: 16s;
}

.aurora-sphere-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%);
  bottom: -100px;
  right: -100px;
  animation-duration: 20s;
  animation-delay: -5s;
}

.aurora-sphere-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  top: 40%;
  left: 55%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes auroraFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.1); }
  100% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

/* Auth Container */
.seller-auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  margin: auto;
}

.seller-auth-container.wide-wizard {
  max-width: 720px;
}

/* Glassmorphism Card (Desktop look) */
.seller-glass-card {
  background: var(--sa-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--sa-card-border);
  border-radius: var(--sa-radius);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.4),
    0 0 45px rgba(37, 99, 235, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 38px 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 992px) {
  .seller-glass-card {
    padding: 42px 40px;
  }
}

/* Top brand badge */
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a73e8 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.45);
  margin-bottom: 16px;
}

/* Step Wizard Progress Bar */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 28px;
  padding: 0 10px;
}

.wizard-progress-track {
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 3px;
  background-color: #e2e8f0;
  z-index: 1;
}

.wizard-progress-fill {
  position: absolute;
  top: 18px;
  left: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #7c3aed);
  z-index: 2;
  transition: width 0.35s ease;
}

.wizard-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wizard-step-node.active .wizard-step-circle {
  background: linear-gradient(135deg, #1a73e8 0%, #2563eb 100%);
  border-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
}

.wizard-step-node.completed .wizard-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.wizard-step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 6px;
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-label {
  color: #1a73e8;
  font-weight: 700;
}

.wizard-step-node.completed .wizard-step-label {
  color: #10b981;
}

/* Suggestion Pills */
.slug-suggestion-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: monospace;
}

.slug-suggestion-pill:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
}

/* OTP 6-Digit Boxes - Premium UX */
.otp-verification-card {
  transition: all 0.3s ease;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.otp-inputs-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 10px;
  position: relative;
}

.otp-box {
  width: 50px;
  height: 56px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.otp-box:disabled {
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.otp-box:not(:disabled) {
  border-color: #6366f1;
}

.otp-box:not(:disabled):hover {
  border-color: #4f46e5;
}

.otp-box:not(:disabled):focus {
  border-color: #4f46e5 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.22) !important;
  outline: none;
  transform: translateY(-2px);
}

.otp-box.filled {
  border-color: #4f46e5;
  background: #fbfbfe;
  color: #3730a3;
}

/* Verifying Pulse Animation */
.otp-inputs-wrapper.verifying .otp-box {
  border-color: #6366f1;
  animation: otpPulse 1.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes otpPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.35);
    transform: scale(1.04);
  }
}

/* Success Verified Animation */
.otp-inputs-wrapper.verified .otp-box {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22) !important;
  animation: otpSuccessPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes otpSuccessPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* Error Shake Animation */
.otp-inputs-wrapper.shake {
  animation: otpShake 0.45s ease-in-out;
}

.otp-inputs-wrapper.has-error .otp-box {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Mobile Look Customizations */
@media (max-width: 767.98px) {
  body.seller-auth-body {
    padding: 16px 12px;
    align-items: flex-start;
  }

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

  .seller-glass-card {
    padding: 24px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .auth-brand-badge {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .wizard-progress-bar {
    margin-bottom: 20px;
  }

  .wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .wizard-step-label {
    font-size: 10.5px;
  }

  .otp-box {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .otp-inputs-wrapper {
    gap: 6px;
  }
  .otp-box {
    width: 36px;
    height: 44px;
    font-size: 18px;
    border-radius: 8px;
  }
}

/* Input group icons & focus */
.seller-input-group .input-group-text {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #64748b;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.seller-input-group .form-control,
.seller-input-group .form-select {
  border-color: #cbd5e1;
  font-size: 14px;
}

.seller-input-group .form-control:focus,
.seller-input-group .form-select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.btn-seller-auth-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  transition: all 0.2s ease;
}

.btn-seller-auth-primary:hover {
  background: linear-gradient(135deg, #1557b0 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.45);
  transform: translateY(-1px);
}

/* Google Social Login Button for Partner Studio */
.btn-seller-google-login {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 1rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-seller-google-login:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-seller-google-login:active {
  transform: translateY(0);
}

.seller-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
}

.seller-auth-divider::before,
.seller-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.seller-auth-divider span {
  padding: 0 0.85rem;
  font-size: 0.765rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

