body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(132deg, #FC415A, #591BC5, #212335);
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
    position: relative; /* Изменено с absolute на relative */
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    overflow-x: hidden;
    display: flex; /* Добавлено */
    justify-content: center; /* Добавлено */
    align-items: center; /* Добавлено */
}
.register-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;
}
.register-container img {
    max-width: 200px;
    margin-bottom: 20px;
}
.register-container label {
    text-align:left;
    display: block;
    margin: 10px 0 5px;
}

.register-container input[type="text"],
.register-container input[type="password"],
.register-container input[type="email"],
.register-container select,
.password-field {
    width: 100%;
    box-sizing: border-box;
}

.register-container input[type="text"],
.register-container input[type="password"],
.register-container input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
}

.password-field {
    position: relative;
    margin-bottom: 10px;
}

.password-field input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 44px;
    margin-bottom: 0;
    display: block;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: transparent;
    transform: translateY(-50%);
    box-shadow: none;
    color: #111;
}

.password-toggle:active {
    transform: translateY(-50%);
    box-shadow: none;
}

 .register-container a{
    display: block;
     text-align:left;
     margin-bottom: 10px;
     font-size: 16px;
     color: black;
     text-decoration: none;
     pointer: cursor;
 }

.register-container select {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
}
.register-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}
.register-container input[type="submit"]:disabled {
    background-color: #9bbcf3;
    cursor: not-allowed;
    opacity: 0.85;
}
.register-container input[type="submit"]:hover {
    background-color: #0056b3;
}
.register-container input[type="submit"]:disabled:hover {
    background-color: #9bbcf3;
}
.comment{
    color:red;
}
.password-hint{
    margin-top: 4px;
    font-size: 12px;
    color: #777;
    text-align: left;
}
.label-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 14px !important;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
}
.consent-group {
    margin-top: 8px;
}
.consent-group-title {
    margin: 8px 0 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    text-align: left;
}
.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex-shrink: 0;
}
.consent-label span {
    display: inline;
}
.register-container .consent-label a {
    display: inline;
    margin: 0;
    font-size: inherit;
    color: #007bff;
    text-decoration: underline;
}
.register-container .consent-label a:hover {
    color: #0056b3;
}
.container-fluid {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ============= Animation background ========= */

.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;
}
/* 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;
    }
}








.modal {

    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6); /* Более насыщенный фон */
    backdrop-filter: blur(5px); /* Размытие для эффекта */
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9); /* Градиентный фон */
    margin: 10% auto; /* Уменьшил отступ сверху */
    padding: 30px;
    border-radius: 12px; /* Закругленные углы */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Тень */
    width: 80%;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s ease-out; /* Анимация появления */
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    width:30px;
    color: #333;
    float: right;
    font-size: 25px;
    font-weight: bold;
    margin-top: -10px;
    margin-right: -10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.close:hover,
.close:focus {
    background: #ff5252;
    color: white;
    text-decoration: none;
}

/* Кнопка внутри модального окна */
.modal-button {
    background: #6200ea; /* Стильная фиолетовая кнопка */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-button:hover {
    background: #3700b3; /* Более темный оттенок при наведении */
}
/* Контейнер для выравнивания элементов */
.modal-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px; /* Задает максимальную ширину для ввода и кнопки */
    margin: 0 auto; /* Центрирует элементы */
    margin-bottom: 20px;
}

/* Поле ввода */
input[type="text"] {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    margin-bottom: 15px; /* Отступ снизу */
}
.code-inputs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.local-code-hint {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #a9c6ff;
    border-radius: 8px;
    background: #eef4ff;
    color: #1256c8;
    font-weight: 700;
    text-align: center;
}

.code-input {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 52px;
    padding: 0;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    box-sizing: border-box;
}

.code-input:focus {
    border-color: #6200ea;
    background: #fff;
    box-shadow: 0 4px 10px rgba(98, 0, 234, 0.2);
}

.input-confirm{
    font-size: 25px;
    font-family: arial,sans-serif;
}
@media screen and (max-width: 400px) {
    input[type="text"] {
        width: 85%;
    }

    .code-inputs {
        gap: 6px;
    }

    .code-input {
        min-height: 44px;
        font-size: 26px;
    }
}


@media screen and (min-width: 400px) {
    input[type="text"] {
        width: 92%;
    }
}


input[type="text"]:focus {
    border-color: #6200ea;
    background: #fff;
    box-shadow: 0 4px 10px rgba(98, 0, 234, 0.2);
}

/* Кнопка */
button {
    width: 100%; /* Совпадает с шириной поля ввода */
    padding: 14px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #6200ea, #8e24aa); /* Градиент */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(135deg, #3700b3, #5e35b1); /* Более темный градиент */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
@media (max-width: 991px) {
  .cube {
    display: none;
    animation: none;
  }
}
