body {
    overscroll-behavior: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
}

.form-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    z-index: -1;
    animation: fade-in-glow 1.5s ease-out forwards;
}

.login-theme .form-container::after {
    top: 20%;
    background: radial-gradient(
            ellipse, #320077 0%,
            rgba(50, 0, 119, 0.6) 10%,
            rgba(50, 0, 119, 0.34) 20%,
            rgba(0, 255, 255, 0) 80%
    );
    width: 100%;
    max-width: 1500px;
}

.signup-theme .form-container::after {
    top: 14%;
    background: radial-gradient(
            ellipse,
            #620807 0%,
            rgb(98 8 7 / 28%) 20%,
            rgba(0, 255, 255, 0) 60%
    );
    width: 200%;
    max-width: 2200px;
}

.form-container::before {
    content: '';
    position: absolute;
    width: 100%;
    max-width: 1700px;
    animation: slide-bg 50s ease forwards;
    z-index: -2;
}

.login-theme .form-container::before {
    height: 200%;
    top: 10px;
    background: url("../img/big-background-r.19c9af53d76f.svg") no-repeat;
}

.signup-theme .form-container::before {
    height: 100%;
    background: url("../img/big-background-heart.c1aba2203bb6.svg") no-repeat;
}

@keyframes fade-in-glow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
        filter: blur(30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes slide-bg {
    from {
        background-position-x: 10%;
    }
    to {
        background-position-x: 90%;
    }
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.send-button {
    border: none;
    border-radius: 50px;
    font-size: 25px;
    width: 425px;
    height: 60px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.login-theme .send-button {
    background-color: var(--purple);
}

.signup-theme .send-button {
    background-color: var(--red);
}

.login-theme .send-button:hover {
    background-color: var(--purple-dark);
}

.signup-theme .send-button:active {
    background-color: var(--red-dark);
}

.form-control {
    display: flex;
    padding-left: 60px;
    padding-right: 60px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 3px solid #CCCCCC;
    border-radius: 30px;
    color: #121212;
    height: 60px;
    width: 600px;
    text-align: center;
    font-size: 25px;
    font-family: 'Prosto One', 'sans-serif';
    font-weight: 400;
}

.form-control::-ms-reveal {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

.form-control:focus {
    outline: none;
}

.form-control::placeholder {
    color: #CCCCCC;
}

.sign {
    font-size: 50px;
    margin-top: 50px;
    margin-bottom: 0;
}

.login-theme .sign {
    color: var(--purple);
}

.signup-theme .sign {
    color: var(--red);
}

.form-fields {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .sign {
        font-size: 40px;
    }

    .form-fields {
        width: 100%;
    }

    .form-control {
        width: 80%;
        font-size: 20px;
    }

    .form-container::before {
        animation: slide-bg 15s ease forwards;
    }

    .login-theme .form-container::after {
        width: 1000px;
    }

    .login-theme .form-container::before {
        background-size: 300px;
        top: 25%;
    }

    .signup-theme .form-container::after {
        width: 1800px;
    }

    .signup-theme .form-container::before {
        background-size: 300px;
        top: 15%;
    }

    form {
        width: 100%;
    }

    .send-button {
        font-size: 20px;
        width: 80%;
    }
}