/* ===== AUTH LAYOUT ===== */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #05050f;
}

.auth-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== LEFT PANEL ===== */
.auth-left {
  flex: 1;
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  animation: fadeUp 0.7s ease both;
}

.auth-left-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
  font-size: 0.78rem;
  color: #a5b4fc;
  margin-bottom: 28px;
  width: fit-content;
}

.auth-left-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 18px;
}

.auth-left-sub {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.af-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  display: grid; place-items: center;
  font-size: 0.7rem;
  color: #a5b4fc;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-testimonial {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
}

.testi-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 2px; }
.testi-text { font-size: 0.88rem; color: #94a3b8; line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.testi-name { font-size: 0.85rem; font-weight: 600; }
.testi-role { font-size: 0.72rem; color: #475569; }

/* ===== RIGHT PANEL ===== */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 40px;
  gap: 20px;
}

/* ===== CARD FLIP ===== */
.auth-card-scene {
  width: 100%;
  max-width: 440px;
  perspective: 1200px;
}

.auth-card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(13,13,31,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.08);
}

.card-front { position: relative; }
.card-back {
  position: absolute;
  top: 0; left: 0;
  transform: rotateY(180deg);
}

/* Glow border animation on focus */
.card-face:focus-within {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.08);
}

.card-inner-header {
  margin-bottom: 28px;
}
.card-inner-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.card-inner-header p { font-size: 0.875rem; color: #64748b; }

/* ===== SOCIAL BUTTONS ===== */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(99,102,241,0.3); transform: translateY(-1px); }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: rgba(255,255,255,0.07);
}
.divider span { font-size: 0.75rem; color: #475569; white-space: nowrap; }

/* ===== AUTH FORM ===== */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: #475569;
  pointer-events: none;
  flex-shrink: 0;
}
.input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 40px 12px 40px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-wrap input:not(:has(~ .eye-btn)) {
  padding-right: 14px;
}
.input-wrap input:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.input-wrap input::placeholder { color: #334155; }
.eye-btn {
  position: absolute; right: 12px;
  background: none; border: none;
  color: #475569; cursor: pointer;
  padding: 4px; border-radius: 6px;
  transition: color 0.2s;
  display: grid; place-items: center;
}
.eye-btn:hover { color: #94a3b8; }

/* Password Strength */
.pwd-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pwd-bars { display: flex; gap: 4px; }
.pwd-bar {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.pwd-label { font-size: 0.72rem; color: #475569; }

/* Remember / checkbox */
.remember-row { margin: 4px 0; }
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.85rem; color: #64748b;
  user-select: none;
}
.checkbox-label input { display: none; }
.checkmark {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
  transition: all 0.2s;
  position: relative;
}
.checkbox-label input:checked + .checkmark {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-color: transparent;
}
.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.forgot-link {
  font-size: 0.78rem; color: #6366f1; text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover { color: #a5b4fc; }

/* Auth Button */
.btn-auth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 13px 24px;
  border-radius: 13px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}
.btn-auth::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-auth:hover::before { opacity: 1; }
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.5); }
.btn-auth:active { transform: translateY(0); }
.btn-auth.loading {
  pointer-events: none;
  opacity: 0.8;
}
.btn-auth .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth Switch */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 20px;
}
.switch-btn {
  background: none; border: none;
  color: #6366f1; font-family: inherit;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: color 0.2s;
  padding: 0;
}
.switch-btn:hover { color: #a5b4fc; }

/* Back link */
.back-link {
  display: flex; align-items: center; gap: 6px;
  color: #475569; text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.back-link:hover { color: #94a3b8; }

/* ===== FLOATING PARTICLES ===== */
.particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(99,102,241,0.4);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 24px 20px; flex: 1; }
}
@media (max-width: 480px) {
  .card-face { padding: 24px 20px; border-radius: 20px; }
}
