html, body {
    height: 100%;
    margin: 0;
}

.login-bg {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;

    background: linear-gradient(
        -45deg,
        #1eb53a,  /* Green */
        #fcd116,  /* Yellow */
        #00a3dd,  /* Blue */
        #000000   /* Black */
    );

    background-size: 400% 400%;
    animation: tzGradient 15s ease infinite;
}
@keyframes tzGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.login-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.login-bg > .container {
    position: relative;
    z-index: 1;
}
.card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.school-logo {
    width: 110px;
    animation: floatLogo 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.35));
}

@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}
.school-logo {
    animation: floatLogo 4s ease-in-out infinite,
               rotateLogo 20s linear infinite;
}

@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.school-logo {
    filter:
        drop-shadow(0 0 6px #1eb53a)
        drop-shadow(0 0 6px #fcd116)
        drop-shadow(0 0 6px #00a3dd);
}
.login-footer {
    position: relative;
    z-index: 2;               /* ABOVE overlay */
    color: #ffffff !important;
    font-size: 0.9rem;
}

.login-footer a {
    color: #fcd116;           /* Tanzania yellow */
    font-weight: 600;
    text-decoration: none;
}
.login-footer a {
    color: #ffffff !important;
}
.login-footer a:hover {
    color: #1eb53a;           /* Tanzania green */
}