.login-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
    margin-top: 60px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .login-card {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .login-section {
        padding: 1rem 0;
    }

    .btn-login {
        padding: 0.8rem !important;
    }

    .national-emblem-small {
        width: 70px !important;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .footer {
        padding: 1rem 0;
    }

    .social-icons {
        margin-top: 1rem;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.national-emblem-small {
    width: 90px;
    margin-bottom: 1.5rem;
}

.form-floating {
    margin-bottom: 1.2rem;
}

.form-control {
    height: auto;
}

.btn-login {
    background-color: rgb(0, 0, 128);
    color: white;
    width: 100%;
    padding: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-login:hover {
    background-color: rgba(0, 0, 128, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.2);
}

.forgot-password {
    color: rgb(0, 0, 128);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    color: rgba(0, 0, 128, 0.8);
}

.footer {
    background: rgb(0, 0, 128);
    color: white;
    padding: 1.5rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-icons a {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.login-section {
    perspective: 1000px;
}

.login-card {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    animation: cardEntrance 1s ease-out;
}

.login-card:hover {
    transform: rotateY(5deg) translateZ(10px);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: rotateX(-10deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotateX(0) translateY(0);
    }
}

.login-header {
    transform-style: preserve-3d;
}

.login-header img {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.login-header h2 {
    transform: translateZ(15px);
    transition: transform 0.3s ease;
}

.login-card:hover .login-header img {
    transform: translateZ(30px);
}

.login-card:hover .login-header h2 {
    transform: translateZ(25px);
}

/* Responsive text adjustments */
@media (max-width: 576px) {
    .text-muted {
        font-size: 0.9rem;
    }

    .form-check-label {
        font-size: 0.9rem;
    }

    .forgot-password {
        font-size: 0.9rem;
    }
}

/* Improved form responsiveness */
@media (max-width: 576px) {
    .form-floating > label {
        font-size: 0.9rem;
    }

    .form-floating > .form-control {
        padding: 1rem 0.75rem;
    }
}