/* ===== AUTH PAGE - CentralCart Inspired ===== */

/* Override body dark theme for auth page */
body.auth-page {
  background: #ffffff !important;
  color: #1a1a2e !important;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== LEFT PANEL (FORM) ===== */
.auth-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #ffffff;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

/* Logo */
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  text-decoration: none;
}

.auth-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

.auth-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: #1a1a2e;
  letter-spacing: -0.5px;
}

.auth-logo .logo-text strong {
  font-weight: 800;
  color: #6366f1;
}

/* Heading */
.auth-heading {
  margin-bottom: 32px;
}

.auth-heading h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-heading p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* TABS */
.auth-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 28px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  border: none;
}

.auth-tab {
  padding: 10px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0;
}

.auth-tab.active {
  color: #1a1a2e;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
}

.auth-tab:hover:not(.active) {
  color: #1a1a2e;
}

/* FORMS */
.auth-form {
  animation: fadeInUp 0.3s ease;
}

.auth-form.hidden {
  display: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.forgot-link {
  font-size: 0.78rem;
  color: #6366f1;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1a1a2e;
  transition: all 0.2s;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #94a3b8;
}

.input-wrapper input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* Password toggle */
.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.2s;
  z-index: 1;
  cursor: pointer;
  background: none;
  border: none;
}

.toggle-pass:hover {
  color: #1a1a2e;
}

/* Password strength */
.pass-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.ps-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s;
}

#psLabel {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Remember / terms */
.form-remember,
.form-terms {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: #64748b;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #6366f1;
}

.checkbox-label a {
  color: #6366f1;
}

/* Plan select */
.plan-select-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-radio {
  cursor: pointer;
}

.plan-radio input {
  display: none;
}

.plan-radio span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  background: #f8fafc;
}

.plan-radio span i {
  font-size: 0.85rem;
}

.plan-radio input:checked + span {
  border-color: #6366f1;
  background: rgba(99,102,241,0.05);
  color: #6366f1;
}

/* Form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Submit button */
.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.btn-auth.loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 14px;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Social auth */
.social-auth {
  display: flex;
  gap: 10px;
}

.btn-social {
  flex: 1;
  padding: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #1a1a2e;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-social:hover {
  border-color: #6366f1;
  background: rgba(99,102,241,0.02);
}

.btn-social svg {
  flex-shrink: 0;
}

/* Footer */
.auth-footer {
  margin-top: 32px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.auth-footer p {
  font-size: 0.85rem;
  color: #64748b;
}

.auth-footer a {
  color: #6366f1;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== RIGHT PANEL (MOCKUP) ===== */
.auth-right {
  width: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #6366f1 0%, #4f46e5 40%, #7c3aed 100%);
}

/* Background shapes */
.auth-right-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.bg-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.bg-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(236,72,153,0.4) 0%, transparent 70%);
}

.bg-shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 20%;
  background: radial-gradient(circle, rgba(245,158,11,0.3) 0%, transparent 70%);
}

/* Geometric shapes like CentralCart */
.bg-geometric {
  position: absolute;
  opacity: 0.1;
}

.geo-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  transform: rotate(45deg);
}

.geo-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  right: -30px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  transform: rotate(20deg);
}

.geo-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 10%;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  transform: rotate(-15deg);
}

.auth-right-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ===== LAPTOP MOCKUP ===== */
.laptop-mockup {
  width: 100%;
  max-width: 560px;
  transform: perspective(1500px) rotateY(-12deg) rotateX(5deg) scale(1.05);
  transition: transform 0.5s ease;
}

.laptop-mockup:hover {
  transform: perspective(1500px) rotateY(-6deg) rotateX(3deg) scale(1.08);
}

.laptop-screen {
  background: #0f0f1a;
  border-radius: 12px 12px 0 0;
  border: 2px solid rgba(255,255,255,0.12);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.15);
}

.laptop-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #0a0a14;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-dots {
  display: flex;
  gap: 5px;
}

.topbar-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.topbar-dots span:nth-child(1) { background: #ef4444; }
.topbar-dots span:nth-child(2) { background: #f59e0b; }
.topbar-dots span:nth-child(3) { background: #10b981; }

.topbar-url {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: #64748b;
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 4px;
}

.laptop-dashboard {
  padding: 16px;
}

/* Dashboard header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}

.dash-welcome {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
}

.dash-plan-badge {
  font-size: 0.55rem;
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.dash-plan-badge i {
  font-size: 0.5rem;
  margin-right: 3px;
}

.dash-date {
  font-size: 0.6rem;
  color: #64748b;
}

.dash-header-right {
  display: flex;
  align-items: center;
}

/* Dashboard stats */
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.dash-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
}

.dsc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dsc-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 0.65rem;
}

.dsc-icon-2 { background: rgba(16,185,129,0.2); color: #10b981; }
.dsc-icon-3 { background: rgba(236,72,153,0.2); color: #ec4899; }

.dsc-trend {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.dsc-trend.up {
  color: #10b981;
  background: rgba(16,185,129,0.12);
}

.dsc-trend i {
  font-size: 0.45rem;
}

.dsc-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.dsc-label {
  font-size: 0.58rem;
  color: #64748b;
}

/* Chart */
.dash-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.dash-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-chart-header span:first-child {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}

.dash-chart-total {
  font-size: 0.6rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  gap: 6px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: rgba(99,102,241,0.3);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.chart-bar.active {
  background: linear-gradient(180deg, #818cf8, #6366f1);
  box-shadow: 0 0 10px rgba(99,102,241,0.4);
}

.chart-bar span {
  font-size: 0.5rem;
  color: #64748b;
  margin-top: 4px;
  position: absolute;
  bottom: -14px;
}

/* Recent downloads */
.dash-recent {
  margin-top: 8px;
}

.dash-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-recent-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-recent-link {
  font-size: 0.55rem;
  color: #818cf8;
  cursor: pointer;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: background 0.2s;
}

.dash-item:hover {
  background: rgba(255,255,255,0.04);
}

.dash-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 0.6rem;
}

.dash-item-icon.di-2 { background: rgba(16,185,129,0.15); color: #10b981; }
.dash-item-icon.di-3 { background: rgba(245,158,11,0.15); color: #f59e0b; }
.dash-item-icon.di-4 { background: rgba(236,72,153,0.15); color: #ec4899; }

.dash-item-info {
  flex: 1;
}

.dash-item-info span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
}

.dash-item-info small {
  font-size: 0.55rem;
  color: #64748b;
}

.dash-item-status {
  font-size: 0.52rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.dash-item-status.success {
  color: #10b981;
  background: rgba(16,185,129,0.1);
}

.dash-item-status.pending {
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
}

.dash-item-size {
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 500;
}

/* Laptop base */
.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 0 0 4px 4px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-notch {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 0 3px 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .auth-right { display: none; }
  .auth-left { width: 100%; }
}

@media (max-width: 480px) {
  .auth-left { padding: 32px 20px; }
  .auth-heading h1 { font-size: 1.4rem; }
  .plan-select-group { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
