/* ══════════════════════════════════════════════════════════
   TEXTILE ANIMATIONS - MeterBabu
   Place this file in: /assets/css/textile-animations.css
   ══════════════════════════════════════════════════════════ */

/* ── LOGIN BOX: Fabric Roll Entrance ── */
@keyframes fabricRollIn {
  0% {
    opacity: 0;
    transform: translateY(40px) rotateX(80deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.auth-box {
  animation: fabricRollIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ── LOGO: Printing Press Effect ── */
@keyframes printingPress {
  0% {
    opacity: 0;
    transform: translateY(-25px) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-logo {
  animation: printingPress 1s ease-out !important;
  animation-delay: 0.3s !important;
  animation-fill-mode: both !important;
}

/* ── LOGO SPAN: Ink Spread ── */
@keyframes inkSpread {
  0% {
    opacity: 0;
    letter-spacing: 10px;
  }
  100% {
    opacity: 1;
    letter-spacing: 2px;
  }
}

.auth-logo span {
  display: inline-block !important;
  animation: inkSpread 0.8s ease-out !important;
  animation-delay: 0.5s !important;
  animation-fill-mode: both !important;
}

/* ── TAGLINE & TABS: Fade In ── */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-tagline {
  animation: fadeInUp 0.8s ease-out !important;
  animation-delay: 0.7s !important;
  animation-fill-mode: both !important;
}

.auth-tabs {
  animation: fadeInUp 0.8s ease-out !important;
  animation-delay: 0.8s !important;
  animation-fill-mode: both !important;
}

/* ── TAB HOVER: Dye Brush Stroke ── */
.auth-tab {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.auth-tab::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.2), transparent) !important;
  transition: left 0.7s ease !important;
  z-index: 0 !important;
}

.auth-tab:hover::before {
  left: 100% !important;
}

/* ── FORM: Fade In ── */
.auth-form {
  animation: fadeInUp 0.8s ease-out !important;
  animation-delay: 0.9s !important;
  animation-fill-mode: both !important;
}

/* ── INPUT FOCUS: Dye Absorption Glow ── */
@keyframes dyeGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,107,53,0);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255,107,53,0.2), 0 0 15px rgba(255,107,53,0.15);
  }
}

.auth-inp {
  transition: all 0.3s ease !important;
}

.auth-inp:focus {
  transform: translateY(-2px) !important;
  animation: dyeGlow 2s ease-in-out infinite !important;
}

/* ── BUTTON: Printing Roller Effect ── */
@keyframes rollerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes ripple {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.7;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.auth-btn {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.auth-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(255,107,53,0.4) !important;
  animation: rollerBounce 0.6s ease-in-out infinite !important;
}

.auth-btn:active {
  transform: translateY(0) !important;
  animation: none !important;
}

.auth-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.4) !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

.auth-btn.ripple::before {
  animation: ripple 0.8s ease-out !important;
}

/* ── FORM SWITCHING ── */
@keyframes formSwitch {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-switching {
  animation: formSwitch 0.4s ease-out !important;
}

/* ══════════════════════════════════════════════════════════
   END OF TEXTILE ANIMATIONS
   ══════════════════════════════════════════════════════════ */
