﻿
/* ========== ANIMATION KEYFRAMES ========== */
@keyframes gradientBG {
    0%

{
    background-position: 0% 50%;
}

50% {
    background-position: 100% 50%;
}

100% {
    background-position: 0% 50%;
}

}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-40px) translateX(-10px);
    }

    75% {
        transform: translateY(-20px) translateX(5px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-30px) translateX(-15px);
    }

    66% {
        transform: translateY(-15px) translateX(15px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ========== BODY WITH GRADIENT ANIMATION ========== */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: gradientBG 8s ease infinite;
    background-size: 200% 200%;
    position: relative;
    overflow-x: hidden;
}

/* ========== ANIMATED BACKGROUND CIRCLES ========== */
.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
    animation: float 8s infinite ease-in-out;
}

/* Different Circles with Different Sizes and Positions */
.circle-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -80px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.circle-2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    right: -100px;
    animation-duration: 15s;
    animation-delay: 2s;
    animation-name: floatSlow;
}

.circle-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 15%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 10%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.circle-5 {
    width: 280px;
    height: 280px;
    top: 60%;
    left: 70%;
    animation-duration: 14s;
    animation-delay: 4s;
    animation-name: floatSlow;
}

.circle-6 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 25%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

.circle-7 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 20%;
    animation-duration: 11s;
    animation-delay: 2.5s;
}

.circle-8 {
    width: 80px;
    height: 80px;
    top: 75%;
    right: 35%;
    animation-duration: 6s;
    animation-delay: 3.5s;
}

/* Inner Glow Effect on Circles */
.bg-circle::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    animation: pulse 3s infinite;
}

/* ========== LOGIN CARD STYLES ========== */
.logo-img {
    width: 250px;
    height: auto;
}

.login-card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }

.portal-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.portal-logo {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2.5rem;
    color: #667eea;
}

.portal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.portal-subtitle {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.form-label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #0f5e50;
        box-shadow: 0 0 0 0.2rem rgba(15, 94, 80, 0.25);
    }

.btn-login {
    background: linear-gradient(145deg, #0f5e50 0%, #0a4238 100%);
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(15, 94, 80, 0.4);
        background: linear-gradient(145deg, #0a4238 0%, #0f5e50 100%);
    }

.register-link {
    color: #0a4238;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.register-link:hover {
        color: #0f5e50;
        text-decoration: underline;
        transform: translateX(3px);
        display: inline-block;
    }
.footer-links {
    font-size: 0.8rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 1rem;
}

    .footer-links a {
        color: #7f8c8d;
        text-decoration: none;
        margin: 0 0.5rem;
        transition: all 0.3s;
    }

        .footer-links a:hover {
            color: #0f5e50;
            transform: translateY(-2px);
            display: inline-block;
        }

.input-group-text {
    background: white;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #95a5a6;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .bg-circle {
        display: none;
    }

    .login-card {
        margin: 20px;
    }

    .portal-logo {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}


