/* ════════════════════════════════════════════════════════════════
   AUTH.CSS — Authentication UI Styles
   Complete styling for login/registration screens
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #000000;
  --card: #0d0d0d;
  --deep: #000000;
  --green: #166534;
  --green2: #16a34a;
  --green3: #22c55e;
  --cream: #fefce8;
  --cream2: #fef9c3;
  --creamdim: rgba(254, 252, 232, .08);
  --white: #f0fdf4;
  --moon: #bbf7d0;
  --muted: #6b7280;
  --border: rgba(255, 255, 255, .1);
  --borderhi: rgba(254, 252, 232, .3);
  --cdim: rgba(22, 163, 74, .06);
  --shadow: 0 4px 24px rgba(0, 0, 0, .8);
  --radius: 14px;
}

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

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow: hidden;
}

button, input, textarea, select {
  font-family: 'DM Sans', sans-serif;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── ANIMATIONS ── */
@keyframes mindvora-colors {
  0%   { color: #166534; }
  3%   { color: #16a34a; }
  6%   { color: #22c55e; }
  9%   { color: #4ade80; }
  12%  { color: #0ea5e9; }
  15%  { color: #38bdf8; }
  18%  { color: #0284c7; }
  21%  { color: #1d4ed8; }
  24%  { color: #3b82f6; }
  27%  { color: #6366f1; }
  30%  { color: #8b5cf6; }
  33%  { color: #a855f7; }
  36%  { color: #d946ef; }
  39%  { color: #ec4899; }
  42%  { color: #f43f5e; }
  45%  { color: #ef4444; }
  48%  { color: #dc2626; }
  51%  { color: #ea580c; }
  54%  { color: #f97316; }
  57%  { color: #f59e0b; }
  60%  { color: #eab308; }
  63%  { color: #facc15; }
  66%  { color: #84cc16; }
  69%  { color: #65a30d; }
  72%  { color: #14b8a6; }
  75%  { color: #06b6d4; }
  78%  { color: #0891b2; }
  81%  { color: #7c3aed; }
  84%  { color: #be185d; }
  87%  { color: #9f1239; }
  90%  { color: #b45309; }
  93%  { color: #15803d; }
  96%  { color: #0f766e; }
  100% { color: #166534; }
}

@keyframes bubbleFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-10px, 20px); }
  75% { transform: translate(25px, 15px); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── AUTH SCREEN ── */
#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100vw;
  padding: 0;
  align-items: stretch;
  background: #000000;
}

#auth-screen::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -5%, rgba(22, 163, 74, .18), transparent);
  pointer-events: none;
}

/* ── SHOWCASE PANELS ── */
.auth-showcase,
.auth-showcase-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.showcase-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: scale(1.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.showcase-slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628, #0d2818, #1a0a2e);
  z-index: 0;
}

.slide-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: bubbleFloat 6s ease-in-out infinite;
}

.float-card {
  position: absolute;
  background: rgba(13, 33, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  animation: cardFloat 4s ease-in-out infinite;
  z-index: 1;
}

.fc-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.fc-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--cream);
}

.fc-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.fc-heart {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}

.avatar-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.ag-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: white;
}

/* ── SLIDE TEXT ── */
.slide-text {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  z-index: 2;
  animation: slideInLeft 0.8s ease;
  max-width: 400px;
}

.slide-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green3);
  margin-bottom: 8px;
}

.slide-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.slide-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green), var(--green2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-desc {
  font-size: 14px;
  color: var(--moon);
  line-height: 1.6;
  margin-bottom: 12px;
}

.slide-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: var(--green3);
}

/* ── SLIDE INDICATORS ── */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 40px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.dot.active {
  background: var(--green3);
  border-color: var(--green3);
  width: 24px;
  border-radius: 4px;
}

/* ── SHOWCASE BRAND ── */
.showcase-brand {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ── AUTH RIGHT (Form) ── */
.auth-right {
  flex: 0.95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #000000;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

.auth-logo-sm {
  margin-bottom: 30px;
  text-align: center;
}

.auth-logo-sm span {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  color: var(--green3);
  animation: mindvora-colors 12s linear infinite;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.6s ease;
}

/* ── AUTH TABS ── */
.auth-tabs {
  display: flex;
  background: var(--deep);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: var(--cream);
}

/* ── AUTH PANEL ── */
.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: slideInLeft 0.4s ease;
}

/* ── FORM GROUPS ── */
.fg {
  margin-bottom: 15px;
}

.fg label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.fi {
  width: 100%;
  padding: 11px 14px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.fi:focus {
  border-color: var(--green3);
}

.fi::placeholder {
  color: var(--muted);
}

/* Autofill styles */
.fi:-webkit-autofill,
.fi:-webkit-autofill:hover,
.fi:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 9999px #000000 inset !important;
  -webkit-text-fill-color: #f0fdf4 !important;
  background-color: #000000 !important;
  caret-color: #f0fdf4 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── PASSWORD FIELD ── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap .fi {
  padding-right: 42px;
}

.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.eye-btn:hover {
  color: var(--green3);
}

/* ── AUTH BUTTONS ── */
.btn-auth {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  border: none;
  border-radius: 13px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
}

.btn-auth:hover {
  opacity: 0.88;
}

.btn-auth:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-google {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-google:hover {
  background: #222222;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── ERROR MESSAGES ── */
.a-err {
  font-size: 12px;
  color: #fca5a5;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  line-height: 1.5;
}

#auth-err {
  font-size: 12px;
  color: #fca5a5;
  text-align: center;
  margin: 10px 0;
  display: block;
}

/* ── DIVIDER ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  font-size: 11px;
  color: rgba(225, 225, 225, 0.1);
  letter-spacing: 1px;
}

/* ── FOOTER TEXT ── */
.auth-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.8;
}

/* ── SPECIAL CARDS ── */
.earn-showcase {
  background: rgba(13, 33, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 16px;
  position: absolute;
  z-index: 1;
}

.es-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.es-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--green3);
  margin-bottom: 2px;
}

.es-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.es-bars {
  display: flex;
  gap: 3px;
  height: 60px;
  align-items: flex-end;
}

.es-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
}

.feat-pill {
  position: absolute;
  background: rgba(13, 33, 24, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
  z-index: 1;
  animation: cardFloat 4s ease-in-out infinite;
}

.post-showcase {
  background: rgba(13, 33, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 12px;
  position: absolute;
  z-index: 1;
}

.ps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.ps-item.ps-active,
.ps-item:hover {
  background: rgba(34, 197, 94, 0.15);
}

.ps-icon {
  font-size: 16px;
}

.ps-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cream);
}

.ps-sub {
  font-size: 9px;
  color: var(--muted);
}

.ps-views {
  font-size: 9px;
  color: var(--green3);
  margin-left: auto;
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .auth-showcase,
  .auth-showcase-right {
    display: none !important;
  }

  #auth-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .auth-right {
    flex: 1;
    width: 100%;
  }

  .auth-box {
    max-width: 380px;
  }

  .slide-text {
    display: none;
  }
}

@media (max-width: 768px) {
  #auth-screen {
    padding: 20px;
  }

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

  .auth-tabs {
    flex-wrap: wrap;
  }

  .fg label {
    font-size: 9px;
  }

  .fi {
    font-size: 15px;
    padding: 12px;
  }

  .btn-auth,
  .btn-google {
    font-size: 14px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  #auth-screen {
    padding: 16px;
  }

  .auth-box {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .auth-logo-sm {
    margin-bottom: 20px;
  }

  .auth-logo-sm span {
    font-size: 28px;
  }

  .fg {
    margin-bottom: 12px;
  }

  .fi {
    padding: 12px 10px;
    font-size: 15px;
  }
}
