/* ============================================================
   VPS HOSTING PRO — AUTH PAGES STYLESHEET
   Ultra-modern authentication design system
   ============================================================ */

/* Auth Layout */
.auth-root {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #060912;
}

/* Animated Background Mesh */
.auth-bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bg-mesh::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  top: -300px;
  left: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 60%);
  animation: mesh-pulse 8s ease-in-out infinite;
}

.auth-bg-mesh::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 60%);
  animation: mesh-pulse 10s ease-in-out infinite reverse;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float-orb 12s ease-in-out infinite;
}

.auth-bg-orb-1 {
  width: 400px; height: 400px;
  top: 10%; left: 5%;
  background: rgba(99,102,241,0.08);
  animation-delay: 0s;
}

.auth-bg-orb-2 {
  width: 300px; height: 300px;
  top: 60%; right: 5%;
  background: rgba(139,92,246,0.08);
  animation-delay: -4s;
}

.auth-bg-orb-3 {
  width: 250px; height: 250px;
  bottom: 10%; left: 30%;
  background: rgba(6,182,212,0.06);
  animation-delay: -8s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

@keyframes mesh-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Grid Overlay */
.auth-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Split Layout */
.auth-split {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* LEFT PANEL — Brand/Hero */
.auth-hero {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  background: linear-gradient(135deg, rgba(6,9,18,0.9) 0%, rgba(15,12,41,0.95) 100%);
  border-right: 1px solid rgba(99,102,241,0.1);
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.4), rgba(139,92,246,0.4), transparent);
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(99,102,241,0.4), 0 0 60px rgba(99,102,241,0.2);
  position: relative;
  overflow: hidden;
}

.hero-logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.hero-logo-text {
  display: flex;
  flex-direction: column;
}

.hero-logo-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero-logo-sub {
  font-size: 0.65rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: 2px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.hero-title .grad {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}

/* Feature List */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.hero-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Security Badge */
.hero-security {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 14px;
  margin-top: 32px;
}

.security-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  position: relative;
}

.security-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16,185,129,0.3);
  animation: security-ring 2s ease-in-out infinite;
}

@keyframes security-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Stats Row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.hero-stat {
  text-align: center;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.65rem;
  color: #475569;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* RIGHT PANEL — Auth Form */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  overflow-y: auto;
}

.auth-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
  font-size: 0.75rem;
  z-index: 5;
}

.auth-footer-link {
  color: #475569 !important;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.auth-footer-link:hover {
  color: #818cf8 !important;
  text-decoration: underline;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 8px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(139,92,246,0.5), transparent);
}

.auth-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-card-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Auth Input */
.auth-input-group {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  font-size: 0.925rem;
  font-family: 'Inter', sans-serif;
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  caret-color: #6366f1;
}

.auth-input::placeholder { color: #334155; }

.auth-input:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 0 20px rgba(99,102,241,0.08);
}

.auth-input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: #818cf8;
}

.auth-input-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.auth-input-action:hover { color: #818cf8; }

/* Password strength */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.strength-bar.weak { background: #f43f5e; }
.strength-bar.medium { background: #f59e0b; }
.strength-bar.strong { background: #10b981; }

/* Auth Button */
.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.auth-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5), 0 0 50px rgba(99,102,241,0.2);
}

.auth-btn:hover::before { opacity: 1; }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-btn-secondary {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(99,102,241,0.3);
  color: #f1f5f9;
}

/* Social buttons */
.auth-social-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.auth-social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #f1f5f9;
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 500;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* Auth Link */
.auth-link {
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link:hover { color: #a5b4fc; text-decoration: underline; }

/* Alert boxes */
.auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-alert-error {
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.2);
  color: #fda4af;
}

.auth-alert-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: #6ee7b7;
}

.auth-alert-info {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc;
}

.auth-alert-warn {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #fcd34d;
}

/* OTP Input Row */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s;
  caret-color: #6366f1;
}

.otp-input:focus {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 0 20px rgba(99,102,241,0.1);
  transform: scale(1.05);
}

.otp-input.filled {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.08);
  color: #818cf8;
}

/* QR Code area */
.qr-container {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
}

.qr-container::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  z-index: -1;
}

/* Method card */
.auth-method-card {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.auth-method-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.05);
  transform: translateY(-1px);
}

.auth-method-card.selected {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.auth-method-card .check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.auth-method-card.selected .check-badge {
  opacity: 1;
  transform: scale(1);
}

/* Step indicator */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.auth-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 0;
}

.auth-step.done:not(:last-child)::after {
  background: linear-gradient(90deg, #6366f1, rgba(99,102,241,0.3));
}

.auth-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #475569;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.auth-step.done .auth-step-circle {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,0.4);
}

.auth-step.active .auth-step-circle {
  border-color: #6366f1;
  color: #818cf8;
  background: rgba(99,102,241,0.1);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.auth-step-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.auth-step.active .auth-step-label { color: #818cf8; }
.auth-step.done .auth-step-label { color: #6366f1; }

/* Session card */
.session-card {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}

.session-card:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.04);
}

.session-card.current {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.04);
}

/* Log entry */
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s;
}

.log-entry:hover { background: rgba(255,255,255,0.02); }
.log-entry.success { border-left-color: #10b981; }
.log-entry.warning { border-left-color: #f59e0b; }
.log-entry.danger { border-left-color: #f43f5e; }
.log-entry.info { border-left-color: #6366f1; }

.log-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Checkbox custom */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.825rem;
  color: #94a3b8;
}

.auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
  flex-shrink: 0;
}

/* Back link */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 20px;
}

.auth-back:hover { color: #818cf8; }

/* Responsive */
@media (max-width: 900px) {
  .auth-hero { display: none; }
  .auth-split { justify-content: center; }
  .auth-form-panel { padding: 24px 16px; min-height: 100vh; }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; border-radius: 20px; }
  .otp-input { width: 42px; height: 50px; font-size: 1.2rem; }
}

/* Floating particles (decorative) */
.auth-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  to { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Toast for auth */
.auth-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
