body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;

}
.wrong_pass{
    color:red;
}
.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    z-index: 10; /* Ensure it appears above the animated background */
}
.logo-img {
    max-width: 100px;
    margin-bottom: -10px;
}
.login-container label {
    display: block;
}
.login-container input[type="text"], .login-container input[type="password"], input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
}
input[type="password"] {
    margin-bottom: 20px!important;
}
.login-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}
.login-container input[type="submit"]:hover {
    background-color: #0056b3;
}
.container-fluid {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
form{
    margin-top: -5px;
    margin-bottom: -5px
}
/* ============= Animation background ========= */
.background {
    background: linear-gradient(132deg, #FC415A, #591BC5, #212335);
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
    position: relative; /* Изменено с absolute на relative */
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex; /* Добавлено */
    justify-content: center; /* Добавлено */
    align-items: center; /* Добавлено */
}
.cube {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px;
    height: 10px;
    border: solid 1px #D7D4E4;
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    animation: cube 12s ease-in forwards infinite;
}
.cube:nth-child(2n) {
    border-color: #FFF ;
}
.cube:nth-child(2) {
    animation-delay: 2s;
    left: 25vw;
    top: 40vh;
}
.cube:nth-child(3) {
    animation-delay: 4s;
    left: 75vw;
    top: 50vh;
}
.cube:nth-child(4) {
    animation-delay: 6s;
    left: 90vw;
    top: 10vh;
}
.cube:nth-child(5) {
    animation-delay: 8s;
    left: 10vw;
    top: 85vh;
}
.cube:nth-child(6) {
    animation-delay: 10s;
    left: 50vw;
    top: 10vh;
}
/* ================= Header ============ */
header{
    position: absolute;
    top:0%;
    left: 0%;
    width:100%;
    margin: 0;
    padding: 0;
}
/* navbar */
nav{
    color: #FFF;
    float: right;
    margin:30px 90px;
}
nav ul{
    list-style: none;
}
nav ul li {
    float: left;
    transition: .3s;
}
nav ul li a{
    text-decoration: none;
    color: #EFEEF5;
    transition: .5;
    font-size: 15px;
    margin-left:16px;
}
nav ul li:hover a{
    text-decoration: none;
    color: #591BC5;;
}
nav ul li:hover{
    height: 45px;
    padding-top: 30px;
    margin-top: -30px;
    background: #EFEEF5;
text-decoration: none;
    transform: skew(15deg);
}
/* Logo */
.logo{
    width: 35px;
    height: 35px;
    background: #EFEEF5;
    margin: 40px 63px;
    float: left;
    transform: rotate(-30deg);
}
.logo span{
    color: #591BC5;
    font-size: 2em;
    line-height: 1.4;
    padding-left: 5px;
    font-weight: bold;
}
/* Header content & title & button*/
.header-content{
    margin-top:25%;
    text-align: center;
    color:  #EFEEF5;
}
.header-content h1{
    text-transform: uppercase;
    font-size: 3em;
    letter-spacing: 1px;
}
.header-content p {
    font-size: 20px;
    line-height: 1.5;
    margin: 20px auto;
}
.header-content button{
    width: 140px;
    margin:20px 10px;
    color: #591BC5;
    font-size: 17px;
    border:1px solid #EFEEF5;
    font-weight: 500;
    background: #EFEEF5;
    border-radius: 20px;
    padding: 10px;
    cursor:pointer;
    transition: .3s;
}
.header-content button:hover{
    border-radius: 0;
}

.container {
  position: relative;
  width: 300px;
  height: 300px;
}

/* Фон */
.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Контейнер для глаз */
.eyes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

/* Глаза */
.eye {
  width: 150px;
  height: 300px;
  transition: transform 0.1s ease-in-out;
  position: absolute;
}
.enter{
  margin-bottom: 0px;
}
.left-eye {
  left: 0;
}

.right-eye {
  right: 0;
}

.glasses {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  transition: transform 0.1s ease-in-out;
  z-index: 2;
}

/* Стили для полей ввода */
.input-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  text-align: center;
  z-index: 3;
}

#loginInput, #passwordInput {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#glasses {
  display: none;
}

/* Animate Background*/
@keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: scale(20) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}

