@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-bg div {
    position: absolute;
    background: rgba(137, 80, 252, 0.3); /* Цвет #8950FC с прозрачностью */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: move 10s linear infinite;
    opacity: 0.7;
}

.animated-bg div:nth-child(1) {
    top: 20%;
    left: 30%;
    width: 120px;
    height: 120px;
    animation-duration: 12s;
}

.animated-bg div:nth-child(2) {
    top: 50%;
    left: 60%;
    width: 150px;
    height: 150px;
    animation-duration: 10s;
}

.animated-bg div:nth-child(3) {
    top: 70%;
    left: 20%;
    width: 100px;
    height: 100px;
    animation-duration: 14s;
}

.animated-bg div:nth-child(4) {
    top: 10%;
    left: 70%;
    width: 140px;
    height: 140px;
    animation-duration: 8s;
}

.animated-bg div:nth-child(5) {
    top: 80%;
    left: 40%;
    width: 130px;
    height: 130px;
    animation-duration: 15s;
}

.animated-bg div:nth-child(6) {
    top: 30%;
    left: 50%;
    width: 100px;
    height: 100px;
    animation-duration: 9s;
}

.animated-bg div:nth-child(7) {
    top: 60%;
    left: 10%;
    width: 90px;
    height: 90px;
    animation-duration: 11s;
}

.animated-bg div:nth-child(8) {
    top: 90%;
    left: 80%;
    width: 110px;
    height: 110px;
    animation-duration: 13s;
}

@keyframes move {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-200px) translateX(200px) scale(1.5);
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group {
    width: 320px;
    text-align: center;
    background: #fff;
    padding: 40px 30px;
    box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1;
}

.logo {
    margin: 10px 0 30px 0;
    height: 55px;
}

input[type=text], input[type=password] {
    padding: 15px;
    border: thin solid #ddd;
    font-weight: 300;
    display: inline-block;
    width: calc(100% - 30px);
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-form > div:not(.auth-err) {
    margin: 15px 0;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.auth-form div:not(.auth-err) > i {
    color: #6643ad;
    font-size: 12px;
    display: inline-block;
    width: 30px;
    text-align: center;
}

::placeholder {
    color: #8494a7;
}

input:focus {
    outline: none;
    border-color: #216998;
    box-shadow: 0 0 5px rgba(33, 105, 152, 0.5);
}

input[type=submit] {
    background: #8950FC; /* Цвет #8950FC */
    color: #fff;
    border: 0;
    cursor: pointer;
    width: 100%;
    padding: 15px 0;
    margin: 10px 0;
    border-radius: 5px;
    transition: background 0.3s ease;
}

input[type=submit]:hover {
    background: #a370ff; /* Более светлый оттенок */
}

input[type=submit]:active {
    background: #6b30cc; /* Более темный оттенок */
}

.auth-err {
    background: #cc5d58 !important;
    color: #fff;
    padding: 15px;
    font-size: 14px;
    text-align: left !important;
    border-radius: 5px;
}

.auth-err i {
    margin: 0 5px 0 0;
    color: #fff !important;
}
