/* Modern Login CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --text-color: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.25);
    --card-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 4rem;
    width: 480px;
    max-width: 90vw;
    color: var(--text-color);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
}

.login-header p {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 10px;
    color: var(--text-color) !important;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-login {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    border: none;
    border-radius: 25px;
    padding: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #4e54c8, #8f94fb);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ffdce0;
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Floating shapes for extra wow factor */
.shape {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    z-index: -1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -80px;
    right: -80px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(180deg) translate(20px, 20px);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

/* Footer style in login */
.login-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}