/* === M-WAVE Animated Background === */
#loginMessage {
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

#loginMessage.success {
  color: #28a745; /* green */
}

#loginMessage.error {
  color: #dc3545; /* red */
}

#loginMessage.info {
  color: #0d6efd; /* blue */
}

.m-wave-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1; /* stays behind everything */
pointer-events: none; /* prevents interaction issues */
}

.m-wave-container svg {
width: 200%;
height: 100%;
will-change: transform;
backface-visibility: hidden;
transform: translateZ(0);

}

/* Animate the wave movement */
.wave {
animation: moveWave 10s linear infinite;
}
.wave1 {
opacity: 0.6;
animation-duration: 10s;
}
.wave2 {
opacity: 0.4;
animation-duration: 14s;
animation-delay: -2s;
}
.wave3 {
opacity: 0.25;
animation-duration: 18s;
animation-delay: -4s;
}

@keyframes moveWave {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
.m-wave-container {
    width: 200%;
    height: 60vh;
}
}

/* === PAGE LAYOUT === */
body {
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* prevents reflow jitter when SweetAlert appears */
    transform: translateZ(0);
    }

.login-wrapper {
display: flex;
max-width: 900px;
width: 100%;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
background-color: #fff;
position: relative;
z-index: 10; /* ensure it’s above waves */
}

.left-panel {
background-color: black;
color: white;
text-align: center;
padding: 40px 20px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.left-panel h1 {
font-family: 'Orbitron', sans-serif;
font-size: 2rem;
line-height: 1.4;
}

.right-panel {
background-color: white;
padding: 40px 30px;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}

.login-card {
width: 100%;
}

.login-card input {
background-color: #e9ecef;
}

.login-card button {
background-color: black;
color: white;
}

.login-card button:hover {
background-color: #333;
}

@media (max-width: 767.98px) {
    .login-wrapper {
        flex-direction: column;
        border-radius: 0;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        padding: 20px;
    }

    .left-panel h1 {
        font-size: 1.5rem;
    }
}

.loader {
width: 48px;
height: 24px;
color: #FFF;
background: currentColor;
border-radius: 50% 50% 0 0;
position: relative;
display: block;
margin: 60px auto 0;
box-sizing: border-box;
animation: animloader 4s linear infinite;
}
.loader::after {
content: '';  
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 28px;
height: 28px;
border-radius: 50%;
background: currentColor;
top: -34px;
box-sizing: border-box;
animation: animloader1 4s linear infinite;
}

@keyframes animloader {
    0% {
        box-shadow: 0 0 0 -2px , 0 0 0 -2px , 0 0 0 -5px , 0 0 0 -5px;
    }
    20% {
        box-shadow: 40px -1px 0 -2px , 0 0 0 -2px , 40px -1px 0 -5px , 0 0 0 -5px;
    }
    40% {
        box-shadow: 40px -1px 0 -2px , -40px -1px 0 -2px ,  40px -1px 0 -5px ,-40px -1px 0 -5px;
    }
    60% {
        box-shadow: 40px -1px 0 -2px , -40px -1px 0 -2px ,   23px -29px 0 -5px ,-40px -1px 0 -5px;
    }
    80%, 95% {
        box-shadow: 40px -1px 0 -2px , -40px -1px 0 -2px ,   23px -29px 0 -5px , -23px -29px 0 -5px;
    }
    100% {
        box-shadow: 40px -1px 0 -2px rgba(255, 255, 255, 0), -40px -1px 0 -2px rgba(255, 255, 255, 0), 23px -29px 0 -5px rgba(255, 255, 255, 0), -23px -29px 0 -5px rgba(255, 255, 255, 0);
    }
}

@keyframes animloader1 {
    0% {
        box-shadow: 0 0 0 -2px , 0 0 0 -2px , 0 0 0 -5px , 0 0 0 -5px;
    }
    20% {
        box-shadow: 40px 2px 0 -2px  , 0 0 0 -2px , 40px 2px 0 -5px , 0 0 0 -5px;
    }
    40% {
        box-shadow: 40px 2px 0 -2px  , -40px 2px 0 -2px , 40px 2px 0 -5px , -40px 2px 0 -5px;
    }
    60% {
        box-shadow: 40px 2px 0 -2px  , -40px 2px 0 -2px , 23px -23px 0 -5px , -40px 2px 0 -5px;
    }
    80%, 95% {
        box-shadow: 40px 2px 0 -2px  , -40px 2px 0 -2px , 23px -23px 0 -5px , -23px -23px 0 -5px;
    }
    100% {
        box-shadow: 40px 2px 0 -2px rgba(255, 255, 255, 0), -40px 2px 0 -2px rgba(255, 255, 255, 0), 23px -23px 0 -5px rgba(255, 255, 255, 0), -23px -23px 0 -5px rgba(255, 255, 255, 0);
    }
}