/* ============================================================
   JAJU MAKEUP & ARTS — Login/Logout + Animations
   ============================================================ */

/* ---------------- Login button in nav ---------------- */
.login-link { font-weight: 700 !important; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--pink-soft); border: 2px solid var(--pink);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--pink-deep);
}
.user-chip button {
  background: var(--grad); color: #fff; border: none; padding: 6px 14px;
  border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: var(--font-body);
  transition: transform .15s;
}
.user-chip button:hover { transform: scale(1.05); }

/* ---------------- Auth modal ---------------- */
.auth-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(43, 10, 31, .65); backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 20px;
}
.auth-modal-overlay.open { display: flex; animation: modalFade .25s ease; }
.auth-modal {
  background: var(--white); border-radius: 24px; padding: 34px 32px;
  width: 100%; max-width: 410px; position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); border: 2px solid var(--border);
  animation: modalPop .35s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { transform: scale(.88) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close {
  position: absolute; top: 14px; right: 18px; font-size: 30px; line-height: 1;
  background: none; border: none; cursor: pointer; color: var(--muted);
}
.auth-close:hover { color: var(--pink-deep); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 11px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--white); font-weight: 700; font-size: 15px; color: var(--ink-soft);
  cursor: pointer; font-family: var(--font-body); transition: all .15s;
}
.auth-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(255,46,136,.3); }
.auth-modal h3 { font-size: 27px; margin-bottom: 4px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; font-weight: 500; }
.auth-field { margin-bottom: 15px; }
.auth-field label { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 6px; color: var(--ink-soft); }
.auth-field input {
  width: 100%; padding: 13px 15px; border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: var(--font-body); transition: border-color .15s;
}
.auth-field input:focus { outline: none; border-color: var(--pink); }
.auth-msg { margin-top: 14px; font-size: 14px; font-weight: 600; text-align: center; color: var(--pink-deep); min-height: 18px; }
.auth-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; font-weight: 500; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 100px; left: 50%; z-index: 300;
  transform: translateX(-50%) translateY(24px);
  background: var(--ink); color: #fff; padding: 15px 30px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: all .35s ease; box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(120deg, #0a7a63, #00b894); }
.toast.error { background: linear-gradient(120deg, #c81d5c, #ff2e88); }

/* ---------------- Floating hero decorations ---------------- */
.float { position: absolute; pointer-events: none; opacity: .5; animation: floaty 6s ease-in-out infinite; z-index: 1; }
.float-1 { top: 7%; left: 3%; font-size: 36px; }
.float-2 { top: 15%; right: 4%; font-size: 30px; animation-delay: 1.2s; }
.float-3 { bottom: 10%; left: 7%; font-size: 28px; animation-delay: 2.1s; }
.float-4 { bottom: 16%; right: 8%; font-size: 34px; animation-delay: 3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* ---------------- Animated offer banner gradient ---------------- */
.offer-banner {
  background: linear-gradient(90deg, #ff2e88, #ff5e9c, #ffb800, #ff2e88);
  background-size: 300% 100%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------------- Hero entrance animation ---------------- */
.hero h1, .hero p.lead, .hero-actions, .hero-trust { animation: heroRise .8s ease both; }
.hero p.lead { animation-delay: .12s; }
.hero-actions { animation-delay: .22s; }
.hero-trust { animation-delay: .32s; }
@keyframes heroRise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- Card hover glow ---------------- */
.course-card, .feature, .testi, .gallery-item, .classroom-item {
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover, .testi:hover { box-shadow: var(--shadow-lg); }

/* ---------------- Page hero letters pop ---------------- */
.page-hero h1 { animation: heroRise .7s ease both; }

/* ---------------- WhatsApp pulse ---------------- */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, .6);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}
.wa-float { position: relative; }

@media (max-width: 560px) {
  .float { display: none; }
}
