@font-face {
    font-family: "Cairo";
    src: url("/fonts/Cairo/static/Cairo-Regular.ttf") format("truetype");
}

* {
    font-family: "Cairo", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 25%,
        #0f172a 50%,
        #1a1f3a 75%,
        #0f172a 100%
    );
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Background Effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(16, 185, 129, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(245, 158, 11, 0.06) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: -1;
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 15%;
    right: 8%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 20%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    bottom: 25%;
    right: 25%;
    animation-delay: -1s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-40px) scale(1.1);
        opacity: 0.1;
    }
}

/* Login Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    padding: 40px 35px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: cardFadeIn 0.8s ease;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.card-header-custom {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.university-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 15px 45px rgba(59, 130, 246, 0.5);
    }
}

.university-icon i {
    font-size: 2rem;
    color: white;
}

.card-header-custom h4 {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-header-custom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Alerts */
.alert-custom {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 12px 18px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #60a5fa;
    width: 18px;
    text-align: center;
}

.form-control {
    border-radius: 50px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: #263b6b;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    accent-color: #3b82f6;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-right: 20px;
    margin-top: 6px;
    cursor: pointer;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.btn-login:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

#installBtn {
    margin-top: 15px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#installBtn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 500px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 28px;
    }

    .university-icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .university-icon i {
        font-size: 1.6rem;
    }

    .card-header-custom h4 {
        font-size: 1.2rem;
    }

    .demo-list .row > div {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

::-webkit-scrollbar {
    width: 0px;
}
