/* ===========================
   PUBLIASHARE — Global Styles
   =========================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple-50:  #faf5ff;
  --purple-100: #f3e8ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6b21a8;
  --purple-900: #581c87;

  --black-50:  #0d0d14;
  --black-100: #11111c;
  --black-200: #161625;
  --black-300: #1e1e32;
  --black-400: #252540;

  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border: rgba(192, 132, 252, 0.15);
  --glass-hover:  rgba(255, 255, 255, 0.07);

  --text-primary:   #f0e6ff;
  --text-secondary: #a78bba;
  --text-muted:     #6b5a7e;

  --input-bg:     rgba(255, 255, 255, 0.05);
  --input-border: rgba(192, 132, 252, 0.2);
  --input-focus:  rgba(168, 85, 247, 0.5);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black-50);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ===========================
   ANIMATED BACKGROUND
   =========================== */

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 120% 80% at 70% 0%, #1a0533 0%, #0d0d14 50%, #0a0a18 100%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: 30%; right: 5%;
  opacity: 0.2;
  animation-delay: -4s;
  animation-duration: 16s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #c084fc, transparent 70%);
  bottom: -100px; left: 30%;
  opacity: 0.15;
  animation-delay: -8s;
  animation-duration: 20s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* ===========================
   MAIN LAYOUT
   =========================== */

.main-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===========================
   BRAND PANEL (LEFT)
   =========================== */

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
}

.brand-panel::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(192, 132, 252, 0.25), transparent);
}

.brand-content {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 48px; height: 48px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5)); }
  50%       { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)); }
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #e9d5ff, #c084fc, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Headline */
.brand-headline h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.feature-item:hover {
  background: var(--glass-hover);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--text-primary);
  transform: translateX(6px);
}

.feature-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(124,58,237,.15));
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 8px;
  font-size: 12px;
  color: var(--purple-400);
  flex-shrink: 0;
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #d8b4fe, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* ===========================
   AUTH PANEL (RIGHT)
   =========================== */

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 13, 22, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.05) inset,
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(124, 58, 237, 0.08);
  overflow: hidden;
  animation: card-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tabs */
.auth-tabs {
  position: relative;
  display: flex;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
  flex: 1;
  padding: 18px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
  letter-spacing: 0.2px;
}

.tab-btn.active { color: var(--text-primary); }

.tab-btn:hover:not(.active) { color: var(--text-secondary); }

.tab-indicator {
  position: absolute;
  bottom: 0; left: 0;
  width: 50%; height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  border-radius: 2px 2px 0 0;
  transition: transform var(--transition);
  box-shadow: 0 -2px 12px rgba(168, 85, 247, 0.5);
}

/* Auth Forms */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  animation: form-in 0.4s ease both;
}

.auth-form.active { display: flex; }

@keyframes form-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.form-header p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Input */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
  pointer-events: none;
  flex-shrink: 0;
}

.input-icon svg { width: 16px; height: 16px; }

.input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.input-wrap input::placeholder { color: var(--text-muted); }

.input-wrap input:focus {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.05);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), 0 0 20px rgba(168, 85, 247, 0.08);
}

.input-wrap input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--purple-400);
}

/* Toggle Password */
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}

.toggle-pw:hover { color: var(--purple-400); }
.toggle-pw svg { width: 16px; height: 16px; }

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
}

.strength-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease;
}

#strengthLabel {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -6px;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--input-border);
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.checkbox-label input:checked ~ .checkmark {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: transparent;
}

.checkbox-label input:checked ~ .checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.forgot-link {
  font-size: 13px;
  color: var(--purple-400);
  text-decoration: none;
  transition: color var(--transition);
}

.forgot-link:hover { color: var(--purple-300); }

.terms-group .checkbox-label {
  font-size: 12px;
  line-height: 1.5;
}

.terms-group a {
  color: var(--purple-400);
  text-decoration: none;
}

.terms-group a:hover { text-decoration: underline; }

/* Primary Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.2px;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary svg {
  width: 18px; height: 18px;
  transition: transform var(--transition);
}

.btn-primary:hover svg { transform: translateX(4px); }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

/* Social Buttons */
.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-social:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  border-color: rgba(192, 132, 252, 0.3);
  transform: translateY(-1px);
}

/* Switch Text */
.switch-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
}

.switch-text a {
  color: var(--purple-400);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.switch-text a:hover { color: var(--purple-300); }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  body { overflow: auto; }

  .main-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-panel {
    padding: 40px 24px 24px;
    display: flex;
  }

  .brand-panel::after { display: none; }

  .brand-headline h1 { font-size: 36px; }

  .feature-list { display: none; }

  .auth-panel {
    padding: 16px 24px 40px;
  }

  .auth-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .social-btns { grid-template-columns: 1fr; }
  .auth-form { padding: 24px 20px; gap: 16px; }
}
