
*{
    font-family: 'Fixel';
}

.container-auth{
    width: 100%;
    height: 100vh;
    padding: 0 16px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--Main-Black, #000);
    position: relative;
}
.auth-body{
    overflow: hidden;
}
.auth-block {
    display: flex;
    flex-direction: column;
    justify-content: center ;
    align-items: center;
    height: 100%;
}
.auth-footer{
    position: absolute;
    bottom: 7%;
    display: inline-flex;

    align-items: center;
    gap: 12px;
}


.auth-footer span{
    color: var(--Main-White, #FFF);
    font-family: Fixel;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px; /* 137.5% */
}
.auth-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.auth-header img{
    width: 32px;
    height: 32px;
}
.auth-text{
    padding-top: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 395px;
}
.auth-text{
    h2{
        color: var(--Main-White, #FFF);
        text-align: center;
        font-family: "Fixel Display";
        font-size: 24px;
        font-style: normal;
        font-weight: 600;
        line-height: 32px; /* 133.333% */
    }
    p{
        color: var(--Gray-600, #666);
        text-align: center;

        /* Text/Reg 14 */
        font-family: "Fixel Text";
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px; /* 114.286% */
    }
}
form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.input-phone_wrapper{
    max-width: 285px;
    margin-top: 72px;

    display: flex;
    width: 285px;
    height: 54px;
    padding: 12px 14px;
    align-items: center;
    gap: 16px;

}
.input-phone_wrapper.error{
    border-bottom: 1px solid var(--Secondary-Red, #DD0C0C);
}
label[for="phone"] {
    color: var(--Main-White, #FFF);
    leading-trim: both;
    text-edge: cap;
    font-family: "Fixel Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 34px; /* 141.667% */
}

#phone{
    color: var(--Main-White, #FFF);
    leading-trim: both;
    text-edge: cap;
    font-family: "Fixel Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    width: 100%;
    line-height: 34px; /* 141.667% */
}

.form-error {
    padding-top: 8px;
    color: var(--Secondary-Red, #DD0C0C);
    text-align: center;
    font-family: "Fixel Text";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    opacity: 0; /* Изначально скрыто */
    visibility: hidden; /* Элемент не будет занимать место */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* Плавное появление */
}

.form-error.show {
    opacity: 1; /* Когда добавлен класс show, элемент будет видим */
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s; /* Плавное исчезновение */
}

button {
    display: flex;
    width: 343px;
    height: 44px;
    padding: 14px 26px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    background: var(--Main-White, #FFF);
    color: var(--Main-Black, #000);
    font-feature-settings: 'ss06' on;
    font-family: "Fixel Text";
    font-size: 16px;
    margin-top: 42px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    transition: background 0.3s ease, color 0.3s ease; /* Добавляем плавную анимацию фона */
}

button.disabled {
    background: #4D4D4D; /* Цвет фона для заблокированной кнопки */

    pointer-events: none; /* Блокируем клики */
}

.auth_block-mid{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.send-new-link{
    background: none;
    padding: none;
    color: var(--Gray-500, #8E8E8E);
    text-align: center;
    font-family: "Fixel Display";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px; /* 157.143% */
    letter-spacing: -0.14px;
}
.code-input{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 72px;
}
.code{
    display: flex;
    width: 46px;
    height: 38px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 4px;
    border-bottom:3px solid #4D4D4D;
    color: var(--Main-White, #FFF);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "Fixel Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 34px; /* 141.667% */
    transition: border-bottom 0.3s ease; /* Добавляем плавную анимацию для изменения border-bottom */

}
.code.active-code{
    border-bottom:3px solid white;
}
.code.error-input{
    border-bottom: 3px solid #DD0C0C;
}

.input-name_wrapper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    align-self: stretch;
    padding-top: 72px;
}
.input-name_wrapper label{
    color: var(--Main-White, #FFF);

    /* Title/Medium 14 */
    font-family: "Fixel Text";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 114.286% */
}
.input-name{
    width: 100%;
    display: flex;
    padding: 14px;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 11px;
    border: 1px solid var(--Gray-900, #292929);
    background: var(--Fields-BG, #161717);
    color: var(--Main-White, #FFF);

    /* Text/Reg 14 */
    font-family: "Fixel Text";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 114.286% */
    transition: all 0.3s ease;
}
.input-name::placeholder{
    color: var(--Gray-600, #666);

    /* Text/Reg 14 */
    font-family: "Fixel Text";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 114.286% */
}
.input-name.input-active{
    border-radius: 11px;
    border: 1px solid var(--Gray-800, #333);
    background: var(--Main-Black, #000);
}

@media(max-width: 500px){
    .auth-block{
        justify-content: flex-start;
        padding-top: 88px;
    }
    .container-auth{
        padding: 0 22px;
    }
    .input-phone_wrapper{
        max-width: none;
        width: 100%;
    }
    button {
        max-width: none;
        width: 100%;
    }
    form {
        width: 100%;
    }
}
@media(min-width: 2100px){
    body {
        font-size: 19.2px; /* Было 16px, увеличено на 20% */
    }

    .form-error {
        font-size: 16.8px; /* Было 14px */
        line-height: 19.2px; /* Было 16px */
    }

    button {
        font-size: 19.2px; /* Было 16px */
    }

    .send-new-link {
        font-size: 16.8px; /* Было 14px */
        line-height: 26.4px; /* Было 22px */
    }

    .code {
        font-size: 28.8px; /* Было 24px */
        line-height: 40.8px; /* Было 34px */
    }

    img {
        width: 120%; /* Увеличено на 20% */
    }

    .auth-header img {
        width: 38.4px; /* Было 32px */
        height: 38.4px; /* Было 32px */
    }

    .code-input {
        padding-top: 86.4px; /* Было 72px */
    }
    .auth-text {
        h2 {
            color: var(--Main-White, #FFF);
            text-align: center;
            font-family: "Fixel Display";
            font-size: 28px;
            font-style: normal;
            font-weight: 600;
            line-height: 32px;
        }
    }

    .auth-text {
        p {
            font-size: 18px;
            line-height: 20px;
        }
    }
    .auth-text{
        gap: 15px;
    }
    .input-name_wrapper label{
        font-size: 16px;
    }
    .input-name{
        font-size: 16px;
    }
    .input-name::placeholder{
        font-size: 16px;
    }
}


