body {
    background-color: #1a1a2e;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

body::before {
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

body::after {
    background: linear-gradient(90deg, #f3904f, #3b4371);
    width: 250px;
    height: 250px;
    bottom: -120px;
    right: -120px;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite ease-in-out;
}

.login-container {
    position: relative;
    z-index: 1;
    background: rgba(23, 23, 39, 0.6);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1em;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1; /* Firefox */
}

.form-control:focus {
    outline: none;
    border-color: #8f94fb;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.auth-links {
    margin-top: 20px;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: white;
}

.invalid-feedback {
    color: #ff7675;
    font-size: 0.8em;
    text-align: left;
    display: block;
    margin-top: 5px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px;
        margin: 15px;
    }
}
