/* ═══════════════════════════════════════════════════════════════
   Ultimate SMM Panel Pro – Auth Page CSS (Login + Register)
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
#usmm-auth-wrap {
  --auth-bg:        #f0f4ff;
  --auth-brand-bg:  linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --auth-card-bg:   #ffffff;
  --auth-text:      #1e293b;
  --auth-muted:     #64748b;
  --auth-border:    #e2e8f0;
  --auth-input-bg:  #f8fafc;
  --auth-radius:    16px;
  --auth-shadow:    0 20px 60px rgba(0,0,0,.12);
  --auth-primary:   #0d6efd;
  --auth-success:   #22c55e;
  --auth-tab-h:     #f1f5f9;
  --auth-tab-act:   #ffffff;
}

#usmm-auth-wrap[data-theme="dark"] {
  --auth-bg:        #0a0e1a;
  --auth-card-bg:   #1a2035;
  --auth-text:      #e2e8f0;
  --auth-muted:     #94a3b8;
  --auth-border:    #2d3748;
  --auth-input-bg:  #0f172a;
  --auth-tab-h:     #0f172a;
  --auth-tab-act:   #1a2035;
}

/* ── Outer wrap ──────────────────────────────────────────────── */
#usmm-auth-wrap {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transition: background 0.3s ease;
}

/* Animated background blobs */
#usmm-auth-wrap::before,
#usmm-auth-wrap::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
#usmm-auth-wrap::before {
  background: #3b82f6;
  top: -100px;
  left: -100px;
  animation: blob1 8s ease-in-out infinite;
}
#usmm-auth-wrap::after {
  background: #8b5cf6;
  bottom: -100px;
  right: -100px;
  animation: blob2 10s ease-in-out infinite;
}
@keyframes blob1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,30px) scale(1.1)} }
@keyframes blob2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,-20px) scale(1.05)} }

/* ── Theme Toggle Button ─────────────────────────────────────── */
.usmm-auth-theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--auth-text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.usmm-auth-theme-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.25); }
#usmm-auth-wrap[data-theme="dark"] .usmm-auth-theme-btn { color: #fbbf24; border-color: rgba(251,191,36,0.3); }

/* ── Auth Container ─────────────────────────────────────────── */
.usmm-auth-container {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 580px;
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

/* ── Brand Panel (Left) ──────────────────────────────────────── */
.usmm-auth-brand {
  width: 42%;
  background: var(--auth-brand-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.usmm-auth-brand::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}
.usmm-auth-brand::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
}

.usmm-auth-brand-inner { position: relative; z-index: 1; }

.usmm-auth-logo { max-height: 50px; max-width: 160px; object-fit: contain; }

.usmm-auth-brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.usmm-auth-brand-sub {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0;
}

/* Features list */
.usmm-auth-features { margin-top: 28px; }
.usmm-auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.usmm-auth-feature-item i {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Stats row */
.usmm-auth-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
}
.usmm-auth-stat {
  flex: 1;
  text-align: center;
}
.usmm-auth-stat + .usmm-auth-stat {
  border-left: 1px solid rgba(255,255,255,0.12);
}
.usmm-auth-stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.usmm-auth-stat-lbl {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Form Panel (Right) ──────────────────────────────────────── */
.usmm-auth-form-panel {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--auth-card-bg);
  transition: background 0.3s;
}

/* ── Tab Switcher ────────────────────────────────────────────── */
.usmm-auth-tabs {
  display: flex;
  background: var(--auth-tab-h);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.usmm-auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.usmm-auth-tab.active {
  background: var(--auth-tab-act);
  color: var(--auth-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Panel Header ────────────────────────────────────────────── */
.usmm-auth-panel-header {
  margin-bottom: 24px;
}
.usmm-auth-panel-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 6px;
}
.usmm-auth-panel-header p { color: var(--auth-muted); font-size: 0.9rem; margin: 0; }

/* ── Form inputs ─────────────────────────────────────────────── */
.usmm-auth-form-panel .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 6px;
}

.usmm-auth-input {
  background: var(--auth-input-bg) !important;
  color: var(--auth-text) !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.usmm-auth-input:focus {
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.12) !important;
}
.usmm-auth-input::placeholder { color: var(--auth-muted); }

.usmm-auth-form-panel .input-group-text {
  background: var(--auth-input-bg);
  border: 1.5px solid var(--auth-border);
  color: var(--auth-muted);
}

/* ── Submit button ───────────────────────────────────────────── */
.usmm-auth-submit {
  border-radius: 10px !important;
  padding: 13px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.usmm-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,110,253,0.35);
}

/* ── Password strength ───────────────────────────────────────── */
.usmm-password-strength .progress { border-radius: 10px; }

/* ── Dark mode overrides ─────────────────────────────────────── */
#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel .form-check-label,
#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel .text-muted,
#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel small { color: var(--auth-muted) !important; }

#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel .alert-info { background:#1e3a5f;border-color:#2d6a9f;color:#93c5fd; }
#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel .alert-success { background:#14532d;border-color:#15803d;color:#86efac; }
#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel .alert-danger { background:#450a0a;border-color:#7f1d1d;color:#fca5a5; }

#usmm-auth-wrap[data-theme="dark"] .usmm-auth-form-panel .btn-outline-secondary {
  border-color: var(--auth-border); color: var(--auth-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .usmm-auth-container { flex-direction: column; max-width: 480px; }
  .usmm-auth-brand { width: 100%; padding: 28px 24px; min-height: auto; }
  .usmm-auth-brand-title { font-size: 1.3rem; }
  .usmm-auth-features { display: none; }
  .usmm-auth-stats { margin-top: 16px; }
  .usmm-auth-form-panel { padding: 24px 20px; }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .usmm-auth-brand { width: 38%; padding: 32px 24px; }
  .usmm-auth-form-panel { padding: 32px 28px; }
}
