@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* color: #fff; */
    overflow: hidden;
    /* animation: backgroundAnimation 15s ease infinite; */
    background-image: url(../assets/logbg.jpg);
    background-position: center;
    background-size: cover;
}

@keyframes backgroundAnimation {
    0% {
        background: linear-gradient(135deg, #1f1c2c, #928dab);
    }
    50% {
        background: linear-gradient(135deg, #243b55, #141e30);
    }
    100% {
        background: linear-gradient(135deg, #1f1c2c, #928dab);
    }
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: linear-gradient(135deg, #141e301c, #243b5518, #1e3c72, #2a52982f);
    background-size: 400% 400%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: zoomIn 0.8s ease-out, gradientShift 15s ease infinite;
}

.container::before, .container::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    pointer-events: none;
    /* backdrop-filter: blur(25px); */
    animation: moveBlocks 10s linear infinite;
}

.container::after {
    animation-direction: reverse;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.form-container {
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #eaeaea;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box input {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid #eaeaea;
    color: #eaeaea;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1em;
    color: #eaeaea;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -15px;
    left: 0;
    font-size: 0.8em;
    color: #76c7c0;
}

.input-box input:focus {
    border-color: #76c7c0;
    box-shadow: 0 2px 5px rgba(118, 199, 192, 0.3);
}

.link-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.signup {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.signup:hover {
    color: #2b2b2b;
}

.forgot-password {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2b2b2b;
}

.login-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    background: linear-gradient(to right, #0049d3, #009dea);
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background: #0083fd;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .input-box input {
        font-size: 0.9em;
    }

    .forgot-password,
    .signup {
        font-size: 0.8em;
    }

    .login-button {
        font-size: 0.9em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .input-box input {
        font-size: 0.8em;
    }

    .forgot-password,
    .signup {
        font-size: 0.7em;
    }

    .login-button {
        font-size: 0.8em;
        padding: 6px;
    }
}
