body {
    color: #000;
    overflow-x: hidden;
    height: 100vh;
    background: #E9E7D6;
    background-attachment: fixed;
    font-family: 'Muli', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(24, 54, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(24, 54, 97, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.site-wrap {
    position: relative;
    z-index: 1;
}

.card0 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card0:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.15);
}

.card1 {
    height: 100%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #183661 0%, #2c5aa0 100%); */
    position: relative;
    overflow: hidden;
}

.card1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.card2 {
    margin: 0px 40px;
    padding: 40px 30px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.image {
    width: 380px;
    height: 300px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.image:hover {
    transform: scale(1.02);
}

.border-line {
    border-right: 1px solid rgba(90, 96, 128, 0.469);
}

/* Legacy social icons - now replaced with service links */

.line {
    height: 1px;
    width: 45%;
    background-color: #E0E0E0;
    margin-top: 10px
}

.or {
    width: 10%;
    font-weight: bold
}

.text-sm {
    font-size: 14px !important
}

::placeholder {
    color: #BDBDBD;
    opacity: 1;
    font-weight: 300
}

:-ms-input-placeholder {
    color: #BDBDBD;
    font-weight: 300
}

::-ms-input-placeholder {
    color: #BDBDBD;
    font-weight: 300
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #999;
    font-size: 13px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.form-group label svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.form-group input.active + label,
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -6px;
    left: 8px;
    font-size: 11px;
    color: #183661;
    font-weight: 600;
}

.form-group input:focus + label svg,
.form-group input:not(:placeholder-shown) + label svg {
    opacity: 1;
    color: #183661;
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

input,
textarea {
    padding: 8px 10px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    margin-bottom: 1px;
    margin-top: 1px;
    width: 100%;
    box-sizing: border-box;
    color: #2C3E50;
    font-size: 14px;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input::placeholder {
    color: #BDBDBD;
    opacity: 1;
    font-weight: 300;
}

input:focus,
textarea:focus {
    border: 2px solid #183661;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(24, 54, 97, 0.1);
    transform: translateY(-2px);
}

input:hover {
    border-color: #667eea;
}

button:focus {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    outline-width: 0
}

a {
    color: inherit;
    cursor: pointer
}

.btn-blue {
    background: linear-gradient(135deg, #183661 0%, #2c5aa0 100%);
    width: 100%;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    white-space: nowrap;
}

.btn-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-blue:hover::before {
    left: 100%;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #183661 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 54, 97, 0.3);
    cursor: pointer;
}

.btn-blue:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(24, 54, 97, 0.2);
}

.btn-blue svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.system-title {
    color: #183661;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.system-subtitle {
    color: #667eea;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0;
}

.bg-blue {
    color: #fff;
    background-color: #183661
}

/* Enhanced link styling */
.login-links {
    margin-top: 25px;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.login-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #183661;
    transition: width 0.3s ease;
}

.login-links a:hover {
    color: #183661;
}

.login-links a:hover::after {
    width: 100%;
}

/* Link icons styling */
.text-success svg,
.text-danger svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Enhanced Service Links Styling */
.social-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.service-link:hover::before {
    left: 100%;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.service-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Individual service link colors */
.service-link.academic:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.service-link.library:hover {
    background: rgba(155, 89, 182, 0.3);
    border-color: rgba(155, 89, 182, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.service-link.elearning:hover {
    background: rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.service-link:hover {
    color: white;
}

.service-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.service-link:hover .service-label {
    letter-spacing: 0.8px;
}

/* Service links animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-link {
    animation: fadeInUp 0.6s ease forwards;
}

.service-link:nth-child(1) { animation-delay: 0.1s; }
.service-link:nth-child(2) { animation-delay: 0.2s; }
.service-link:nth-child(3) { animation-delay: 0.3s; }

/* Legacy social media effects - now replaced with service links */

/* Welcome text styling */
.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-heading {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    body {
        background: #E9E7D6;
    }
    
    .logo {
        width: 100px;
        height: 100px;
        margin-left: 0px;
    }

    .image {
        width: 280px;
        height: 200px;
    }

    .border-line {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .card2 {
        border-top: none !important;
        margin: 0px 15px;
        padding: 35px 25px;
    }
    
    .card0 {
        margin: 20px;
        border-radius: 15px;
    }
    
    .btn-blue {
        width: 100%;
        font-size: 15px;
        padding: 12px 15px;
        min-height: 48px;
    }
    
    .welcome-heading {
        font-size: 24px;
    }
    
    .welcome-text {
        font-size: 16px;
    }
    
    /* Service links responsive for medium screens */
    .social-contact {
        gap: 0.8rem;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .service-link {
        padding: 7px 11px;
        font-size: 11px;
    }
    
    .service-link svg {
        width: 15px;
        height: 15px;
    }
    
    .service-label {
        font-size: 10px;
    }
}

@media screen and (max-width: 576px) {
    .card0 {
        margin: 10px;
        border-radius: 12px;
    }
    
    .card2 {
        margin: 0px 10px;
        padding: 25px 20px;
    }
    
    .image {
        width: 220px;
        height: 160px;
    }
    
    input, textarea {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group label svg {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    
    .form-group input:focus + label svg,
    .form-group input:not(:placeholder-shown) + label svg {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
    
    .system-title {
        font-size: 16px;
    }
    
    .system-subtitle {
        font-size: 13px;
    }
    
    /* Service links responsive */
    .social-contact {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    
    .service-link {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .service-link svg {
        width: 14px;
        height: 14px;
    }
    
    .service-label {
        font-size: 10px;
        display: none; /* Hide labels on mobile for cleaner look */
    }
    
    /* Mobile auth links styling */
    .auth-links {
        margin-bottom: 0.5rem;
    }
    
    .auth-link-item {
        line-height: 1.4;
        display: block;
    }
    
    /* Mobile copyright styling */
    .mobile-copyright {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 11px;
    }
}

/* Alert positioning and styling */
.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9999;
    padding: 0 15px;
}

.alert-container .alert {
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

.alert-container .alert-success {
    background: rgba(46, 204, 113, 0.95);
    color: white;
}

.alert-container .alert-danger {
    background: rgba(231, 76, 60, 0.95);
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive alert positioning */
@media screen and (max-width: 576px) {
    .alert-container {
        top: 10px;
        width: 95%;
        padding: 0 10px;
    }
    
    .alert-container .alert {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Loading animation for better UX */
.btn-blue.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-blue.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}