:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(-45deg, #f5f7fa, #e4e8f0, #f0f4f8);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Login Wrapper */
.login-wrapper {
    max-width: 1000px;
    width: 90%;
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 550px;
}

/* School Info Section */
.school-info {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .school-info::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        animation: pulse 8s infinite alternate;
    }

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.school-logo {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

    .school-logo:hover {
        transform: scale(1.05);
    }

.school-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.school-motto {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-align: center;
}

.school-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

    .school-features li {
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }

    .school-features i {
        margin-right: 0.8rem;
        font-size: 1.1rem;
        color: var(--accent-color);
    }

.school-contact {
    margin-top: auto;
    font-size: 0.9rem;
}

    .school-contact p {
        margin-bottom: 0.5rem;
    }

/* Login Form Section */
.login-form {
    flex: 0 0 55%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(106, 17, 203, 0.3);
}

.login-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
        background-color: white;
    }

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.95rem;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

    .login-footer a {
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.2rem 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 0.3s;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--accent-color);
        }

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .footer-social a {
        color: white;
        background: rgba(255,255,255,0.1);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

        .footer-social a:hover {
            background: var(--accent-color);
            transform: translateY(-3px);
        }

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
        max-height: 200px;
        margin-left: 25%;
    }

    .school-info, .login-form {
        flex: 1;
        padding: 2rem;
    }

    .school-info {
        border-radius: 20px 20px 0 0;
    }

    .login-form {
        border-radius: 0 0 20px 20px;
    }

    .school-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        width: 95%;
        border-radius: 15px;
    }

    .school-info, .login-form {
        padding: 1.5rem;
    }

    .school-title {
        font-size: 1.4rem;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

    [data-aos="fade-up"].aos-animate {
        opacity: 1;
        transform: translateY(0);
    }


