.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 336px;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Manrope', sans-serif;
}
.form-wrapper .logo {
    max-width: 257px;
    margin-bottom: 32px;
}
.form-wrapper .logo img {
    max-width: 100%;
}
.form-wrapper form {
    width: 100%;
}
.form-message {
    font-size: 14px;
    font-weight: 600;
    line-height: 19.6px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #717D8A;
    margin-bottom: 0;
}
.form-error {
    display: none;
}

.custom-checkbox input[type="checkbox"] {
    display: none; /* Скрыть стандартный чекбокс */
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 19.6px;
    letter-spacing: -0.02em;
    text-align: left;
}

.custom-checkbox .checkbox {
    width: 15px;
    height: 15px;
    border: 2px solid #407BF2;
    border-radius: 4px;
    position: relative;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox {
    border-color: #407BF2;
}
.custom-checkbox .checkmark {
    opacity: 0; /* Скрыть галочку по умолчанию */
    transition: opacity 0.3s;
}
.custom-checkbox input[type="checkbox"]:checked + .checkbox .checkmark {
    opacity: 1; /* Показать галочку */
}
.btn {
    padding: 18px 16px 18px 16px;
    border-radius: 40px;
    background: #407BF2;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: -0.02em;
    text-align: center;
    transition: .3s;
    border: none;
    width: 100%;
    cursor: pointer;
}
.btn:hover {
    background: #405ef2;
}
form > * {
    margin-top: 16px!important;
}
.form-row.form-row-error input {
    border: 1px solid #FF513A;
}
.form-error {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    color: #FF513A;
    margin: 4px 0 0;
}
.form-row.form-row-error .form-error {
    display: block;
}
input:not([type="checkbox"]),
input:not([type="radio"]) {
    width: 100%;
    padding: 10px 12px 10px 12px;
    gap: 12px;
    border-radius: 5px;
    border: 1px solid #EAECEE;
    background: #F7F8FB;
    color: #A8B0B9;
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    letter-spacing: -0.02em;
    text-align: left;
    box-sizing: border-box;
}
input::placeholder,
input::-webkit-input-placeholder,
input:-moz-placeholder {
    color: #A8B0B9;
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    letter-spacing: -0.02em;
    text-align: left;
}
label:not(.custom-checkbox) {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    margin-bottom: 4px;
    display: inline-block;
    color: #A8B0B9;
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-password {
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    background: none;
    font-size: 16px;
}

.toggle-password svg {
    display: none;
}
.toggle-password .eye-open {
    display: block;
}

.toggle-password.active .eye-open {
    display: none;
}

.toggle-password.active .eye-closed {
    display: block;
}
.form-bottom {
    display: flex;
    margin-top: 16px;
}
.form-bottom a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    color: #407BF2;
    padding: 12px 7px;
    border-radius: 40px;
    text-decoration: none;
    line-height: 19px;
    transition: .3s;
    border: 2px solid transparent;
    cursor: pointer;
}
.form-bottom a:hover {
    border-color: #407BF2;
}
.form-bottom a + a {
    margin-left: 8px;
}
p.version {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    color: #4F5B67;
}
p.terms {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    color: #717D8A;
}
p.terms a {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    color: #407BF2;
    text-decoration: none;
}