body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-school {
  background-image: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.72)),
                    url('../../img/bg1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* AMBIENT FLOATING GLOW ORBS */
.ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.6) 0%, rgba(251, 113, 133, 0.2) 70%, transparent 100%);
  top: 10%;
  left: 15%;
}

.ambient-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(56, 189, 248, 0.2) 70%, transparent 100%);
  bottom: 10%;
  right: 15%;
  animation-duration: 14s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-25px, 35px) scale(0.95); }
}

/* GLASS CARD WITH 3D PERSPECTIVE */
.glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  will-change: transform;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HAPTIC SHAKE ANIMATION ON ERROR */
@keyframes hapticShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px) rotate(-0.5deg); }
  30% { transform: translateX(8px) rotate(0.5deg); }
  45% { transform: translateX(-6px) rotate(-0.3deg); }
  60% { transform: translateX(5px) rotate(0.3deg); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}
.shake {
  animation: hapticShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* SUCCESS PULSE */
@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5), 0 10px 25px -3px rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0), 0 14px 28px -3px rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 10px 25px -3px rgba(16, 185, 129, 0.4); }
}
.success-active {
  animation: successPulse 1.4s infinite !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
}

/* INPUT FOCUS MODERN RING (SOFT RED ACCENT) */
.input-focus {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.input-focus:focus {
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16), 0 2px 8px rgba(244, 63, 94, 0.08);
  border-color: #fb7185 !important;
  background-color: #ffffff !important;
}
.input-focus.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18) !important;
}

/* ICON FOCUS COLOR */
.group:focus-within .group-icon-focus {
  color: #f43f5e !important;
  transform: scale(1.08);
  transition: all 0.25s ease;
}

/* PANCASILA SOFT RED TEXT */
.text-pancasila-red {
  color: #fb7185;
  background: linear-gradient(135deg, #ff758c 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(244, 63, 94, 0.4));
}

/* MODERN LOGIN BUTTON WITH SHIMMER */
.btn-login {
  position: relative;
  overflow: hidden;
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
  z-index: 1;
}

/* SHIMMER LIGHT BEAM EFFECT */
.btn-login::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: none;
}

.btn-login:hover::after {
  left: 120%;
  transition: left 0.75s ease-in-out;
}

.btn-login:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%) !important;
  box-shadow: 0 14px 30px -3px rgba(244, 63, 94, 0.55), 0 6px 12px -4px rgba(251, 113, 133, 0.4) !important;
  transform: translateY(-2px);
}

.btn-login:active,
.btn-login:focus-visible {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.35), 0 8px 20px rgba(225, 29, 72, 0.55) !important;
  transform: scale(0.98);
}

.btn-login.is-loading {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.3), 0 10px 25px rgba(244, 63, 94, 0.45) !important;
  cursor: wait;
}

/* RIPPLE EFFECT */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ANIMATED LINES */
@keyframes flowRight {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.line-container {
  position: relative;
  overflow: hidden;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.line-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fda4af, #fb7185, #f43f5e, #e11d48, transparent);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.8), 0 0 6px rgba(251, 113, 133, 0.9);
  animation: flowRight 2.8s infinite linear;
}

/* ROTATING BORDER LOGO */
.logo-border-box {
  position: relative;
  width: 112px;
  height: 112px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-border-box::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(transparent, transparent, transparent, #fb7185, #f43f5e);
  animation: rotateBorder 4s linear infinite;
}

.logo-border-box::after {
  content: '';
  position: absolute;
  inset: 4px; 
  background: white; 
  border-radius: 1.2rem;
  z-index: 1;
}

.logo-border-box img {
  position: relative;
  z-index: 2; 
  width: 80%;
  height: 80%;
}

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}