#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* Чтобы видео не растягивалось неестественно */
    z-index: -1;       /* Отправляем видео на самый задний план */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Avantgarde, "TeX Gyre Adventor", "URW Gothic L", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем контент по вертикали */
    align-items: center;     /* Центрируем контент по горизонтали */
    padding: 20px;
}

.content {
    text-align: center;
    border-radius: 25px;
    box-shadow: 0px 5px 17px 11px rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.7);
    color: #f1f1f1;
    width: 100%;
    max-width: 450px; /* Форма не будет больше 450px, но сожмется на смартфонах */
    padding: 30px 20px;
    margin-bottom: 20px;
}

.signin {
    text-align: center;
    color: #f1f1f1;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* Чтобы текст лучше читался поверх видео */
}

.infbar {
    text-align: center;
}

.infbar p {
    display: flex;
    gap: 20px; /* Современный способ сделать отступы между иконками */
    margin: 0;
}

/* Стили для инпутов (добавлен селектор для email, так как он есть в HTML) */
input[type=text], input[type=password], input[type=login], input[type=email] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.50);
    color: #fff; /* Изменено на белый, чтобы текст при вводе было видно */
}

input[type=text]:focus, input[type=password]:focus, input[type=login]:focus, input[type=email]:focus {
    background-color: #ddd;
    color: #000;
    outline: none;
}

hr {
    border: 1px solid #f1f1f1;
    margin-bottom: 25px;
}

.registerbtn {
    background-color: rgba(47, 102, 212, 1);
    border-radius: 15px;
    color: white;
    padding: 16px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-weight: bold;
}

.registerbtn:hover {
    opacity: 1;
}

a {
    color: dodgerblue;
}

h1 {
    margin-top: 0;
    text-decoration: underline;
    text-decoration-color: rgba(47, 102, 212, 1);
}