.show-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    top: 17px;
    transition: 0.3s;
    color: #858C95;

    &:hover, &.active{
        color: rgb(26, 26, 26);
    }
}

a.auth-link-b {
    color: #313335;
    font-size: 12px;
    font-weight: 400;
    padding-left: 6px;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;

    &:hover{
        color: #FE902F;
    }
}

a.link-auth {
    color: #1E9EDE;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 45px;
    text-decoration: none;
    transition: 0.3s;

    &:hover{
        color: #06acff;;
        transform: scale(1.02);
    }
}

.close-form {
    color: #E8E8E8;
    position: absolute;
    right: 19px;
    top: 19px;
    z-index: 1;
    cursor: pointer;
    transition: 0.3s;

    &:hover {
        transform: scale(1.05);
        filter: contrast(0.7);
    }
}

/* Cube modals: forgot, reset, email, money */
.absolute-form .modal-form-cubes {
    width: 100%;
    max-width: 460px;
    margin: auto;
    position: relative;
}

.absolute-form .modal-form-cubes > .content-block-1,
.absolute-form .modal-form-cubes > #content_email {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 44px 40px 40px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.3), 0 12px 24px -8px rgba(0, 0, 0, 0.4);
    background: #1a1a1e;
}

/* форма внутри модалки не добавляет своих отступов (браузерный margin у form) */
.absolute-form .modal-form-cubes form {
    margin: 0;
    padding: 0;
    display: block;
}

/* group-content-block-1: и когда прямой потомок (forgot), и когда внутри form (reset) — один и тот же layout */
.absolute-form .modal-form-cubes .content-block-1 .group-content-block-1 {
    display: flex;
    flex-direction: column;
    gap: 31px;
    width: 100%;
}

.absolute-form .modal-form-cubes .content-block-1 .left-group-block-1 {
    width: 100%;
}

.absolute-form .modal-form-cubes .content-block-section {
    margin-bottom: 4px;
}

.absolute-form .modal-form-cubes h3.text-block-h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #e5e7eb;
    margin: 0 0 8px 0;
}

.absolute-form .modal-form-cubes p.text-block-p {
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
    margin: 0;
}

.absolute-form .modal-form-cubes .range-object {
    gap: 20px;
    margin-top: 28px;
    width: 100%;
}

.absolute-form .modal-form-cubes .inputs-group {
    gap: 18px;
    width: 100%;
}

.absolute-form .modal-form-cubes .object-input {
    width: 100%;
}

.absolute-form .modal-form-cubes .custom-input-1 {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #222228;
    color: #e5e7eb;
    font-size: 14px;
    padding-left: 16px;
    padding-right: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.absolute-form .modal-form-cubes .custom-input-1:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    background: #25252d;
}

.absolute-form .modal-form-cubes .custom-input-1::placeholder {
    color: #6b7280;
}

/* переопределение автозаполнения браузера — тёмный фон и светлый текст */
.absolute-form .modal-form-cubes .custom-input-1:-webkit-autofill,
.absolute-form .modal-form-cubes .custom-input-1:-webkit-autofill:hover,
.absolute-form .modal-form-cubes .custom-input-1:-webkit-autofill:focus,
.absolute-form .modal-form-cubes .custom-input-1:-webkit-autofill:active {
    -webkit-text-fill-color: #e5e7eb;
    -webkit-box-shadow: 0 0 0 1000px #222228 inset;
    box-shadow: 0 0 0 1000px #222228 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.absolute-form .modal-form-cubes .group-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.absolute-form .modal-form-cubes .custom-button-1 {
    min-height: 48px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.absolute-form .modal-form-cubes .custom-button-1:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.absolute-form .modal-form-cubes .close-form {
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #9ca3af;
    background: transparent;
    transition: color 0.2s, background 0.2s;
}

.absolute-form .modal-form-cubes .close-form:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    filter: none;
}

.absolute-form .modal-form-cubes .close-form svg {
    width: 20px;
    height: 20px;
}

.absolute-form .modal-form-cubes a.auth-link-b {
    font-size: 13px;
    color: #9ca3af;
}

.absolute-form .modal-form-cubes a.auth-link-b:hover {
    color: #a78bfa;
}

/* Чекбокс в куб-модалках (единый тёмный вид) */
.absolute-form .modal-form-cubes .checkbox-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Любой чекбокс внутри модалки — тёмный вид (перекрывает глобальный .checkbox и .checkbox:hover) */
.absolute-form .checkbox {
    background: #25252d;
    border: 1px solid rgba(255, 255, 255, 0.25);
    /* без transition при снятии галки — иначе бокс ещё 0.2s фиолетовый */
    transition: none;
}

.absolute-form .checkbox:hover {
    background: #2d2d35;
    border-color: rgba(255, 255, 255, 0.35);
}

.absolute-form .checkbox.active {
    transition: background 0.2s ease, border-color 0.2s ease;
}

.absolute-form .checkbox.active:hover {
    background: #a424e6;
    border-color: #b43df0;
}

/* Без .active галочка прозрачная; с .active — акцент сайта */
.absolute-form .checkbox .checkbox-active path {
    fill: transparent;
}

.absolute-form .checkbox.active .checkbox-active path {
    fill: #e5d4f0;
}

.absolute-form .modal-form-cubes .checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 4px;
}

.absolute-form .modal-form-cubes .checkbox.active {
    background: #a424e6;
    border-color: #b43df0;
}

.absolute-form .modal-form-cubes .checkbox.active .checkbox-active path {
    fill: #e5d4f0;
}

.absolute-form .modal-form-cubes .checkbox-main .text-left,
.absolute-form .modal-form-cubes .checkbox-main .text-block-p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Чекбокс «Запомнить» в модалке входа (auth) */
.absolute-form.auth .modal-form-auth .checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 4px;
}

.absolute-form.auth .modal-form-auth .checkbox.active {
    background: #a424e6;
    border-color: #b43df0;
}

.absolute-form.auth .modal-form-auth .checkbox.active .checkbox-active path {
    fill: #e5d4f0;
}

.absolute-form.auth .modal-form-auth .checkbox-main .text-left {
    font-size: 13px;
    color: #9ca3af;
}

/* Ссылки в модалке входа — как у cubes (тёмная тема) */
.absolute-form.auth .modal-form-auth a.auth-link-b {
    font-size: 13px;
    color: #9ca3af;
}

.absolute-form.auth .modal-form-auth a.auth-link-b:hover {
    color: #a78bfa;
}

/*CheckBox*/
.checkbox {
    transition: 0.3s;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #E5E5E7;
    background: #F8F9FB;
    width: 20px;
    height: 20px;

    &:hover{
        background: #e9e9e9;
    }
}

.checkbox-active {
    width: 32px;
    transform: translate3d(-8px, -2px, 10px);
    opacity: 0;
    transition: 0.3s;
}
.checkbox.active > .checkbox-active {
    opacity: 1!important;
}
/*CheckBox close*/


.absolute-form {
    position: fixed;
    overflow: auto;
    z-index: 3;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-form, .tfa-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-form-auth {
    width: 1184px;
    height: 656px;
    border-radius: 24px;
    background: #1a1a1e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.3), 0 24px 48px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.modal-form-auth .close-form {
    right: 24px;
    top: 24px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    transition: color 0.2s, background 0.2s;
}

.modal-form-auth .close-form:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    filter: none;
}

.modal-form-auth .right-auth .custom-input-1 {
    height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #222228;
    color: #e5e7eb;
    font-size: 14px;
}

.modal-form-auth .right-auth .custom-input-1:focus {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    background: #25252d;
}

.modal-form-auth .right-auth .custom-input-1:-webkit-autofill,
.modal-form-auth .right-auth .custom-input-1:-webkit-autofill:hover,
.modal-form-auth .right-auth .custom-input-1:-webkit-autofill:focus,
.modal-form-auth .right-auth .custom-input-1:-webkit-autofill:active {
    -webkit-text-fill-color: #e5e7eb;
    -webkit-box-shadow: 0 0 0 1000px #222228 inset;
    box-shadow: 0 0 0 1000px #222228 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.modal-form-auth .custom-button-1.auth-button {
    min-height: 52px;
    border-radius: 12px;
    font-weight: 600;
}

.modal-form-auth h2.h2-auth {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #e5e7eb;
}

.modal-form-auth p.p-auth {
    font-size: 14px;
    line-height: 1.55;
    color: #9ca3af;
}

.modal-form-tfa {
    width: 656px;
    height: 656px;
    border-radius: 24px;
    background: #1a1a1e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.3), 0 24px 48px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    padding: 56px 48px;
}

.modal-form-tfa .auth-form-a h2.h2-auth {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #e5e7eb;
}

.modal-form-tfa .auth-form-a p.p-auth {
    font-size: 14px;
    line-height: 1.55;
    color: #9ca3af;
}

/* 2FA — 6 ячеек для кода */
.modal-form-tfa .tfa-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}

.modal-form-tfa .tfa-digit {
    width: 52px;
    height: 60px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border-radius: 14px;
    background: #222228;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-tfa .tfa-digit::placeholder {
    color: #4b5563;
}

.modal-form-tfa .tfa-digit:focus {
    outline: none;
    background: #25252d;
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.modal-form-tfa .tfa-digit.filled {
    border-color: rgba(124, 58, 237, 0.4);
}

.modal-form-tfa #tfa_confirm {
    min-height: 52px;
    border-radius: 12px;
    font-weight: 600;
}

img.slide-background-shadow {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}



.error-message {
    text-align: left;
    width: 100%;
    color: #FF5434;
    font-size: 10px;
    opacity: 0;
    font-weight: 400;
    transition: 0.3s;
    transform: translateY(10px);
    min-height: 8px;
}

h2#swal2-title {
    font-size: 13px;
    font-weight: 400;
}

.left-auth {
    width: 50%;
    height: 100%;
    margin-left: -2px;
}

.right-auth {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2.h2-auth {
    color: #313335;
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
}

p.p-auth {
    color: #858C95;
    font-size: 14px;
    font-weight: 400;
    line-height: 25px;
}

section.top-section {
    gap: 17px;
    display: grid;
}

img.avatar-user-auth {
    position: absolute;
    width: 26.056px;
    height: 27.14px;
    margin-left: 15px;
    left: 0px;
    top: 16px;
}

.custom-input-1, select{
    border-radius: 6px;
    border: 1px solid #E5E5E7;
    background: #F8F9FB;
    width: 100%;
    height: 61px;
    outline: none;
    color: #323539;
    font-size: 12px;
    font-weight: 400;
    padding-left: 15px;
    padding-right: 15px;
    transition: 0.3s;

    &.swal2-select{
        width: auto;
        font-size: 15px;
    }

    &#password {
        padding-right: 45px;
    }
    
    &#login,
    &#forgot_login {
        padding-left: 52px;
    }

    &:not(.refferal):not(.swal2-select):focus{
        background: #fe902f1a;
        border: 1px solid #fe902f;
    }

    &.copy, &.active {
        background: #8bc34a26;
        border: 1px solid #8bc34a9e;
        color:#8BC34A;
    }

    &.refferal {
        cursor: pointer;
        padding-right: 119px;
    }

    &.error_input {
        border-radius: 6px;
        border: 1px solid #FF5434;
        background: rgba(255, 84, 52, 0.04);
    }
}

/* инпуты в модалках (forgot/reset/email/money) — тёмный фон и при :focus */
.absolute-form .modal-form-cubes .custom-input-1:focus {
    background: #25252d;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.slider-auth > .owl-dots {
    position: absolute;
    bottom: 68px;
    left: -52px;
}

.object-input {
    display: flex;
    align-items: flex-start;
    position: relative;
    flex-direction: column;
}

.auth-form-a {
    display: grid;
    gap: 21px;
}

.text-group-bottom {
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
}

p.text-left {
    color: rgba(0, 0, 0, 0.75);
    font-size: 12px;
    font-weight: 400;
    padding-top: 3px;
}

button.custom-button-1.auth-button {
    width: 100%;
}

.bottom-group {
    display: grid;
    gap: 25px;
}

p.text-info {
    color: #858C95;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.12px;
}

.slider-auth {
    width: 100%;
    height: 100%;
}
.owl-stage-outer {
    height: 100%;
    width: 100%;
}

.inputs-group {
    display: grid;
    gap: 33px;
}

section.content-slider-a {
    position: absolute;
    z-index: 1;
    max-width: 398px;
    bottom: 100px;
    left: 58px;
    display: grid;
    justify-items: start;
    gap: 8px;
}

h3.auth-h3 {
    color: #FFF;
    font-size: 32px;
    font-weight: 700;
    line-height: 45px;
    letter-spacing: -0.32px;
}

img.tfa-loading {
    aspect-ratio: 1 / 1;
    width: 100px;
    margin: auto;
}

@media (max-width: 1174px) {
    .left-auth {
        display: none;
    }
    .right-auth {
        width: 100%;
    }
    .modal-form-auth, .modal-form-tfa {
        max-width: 553px;
        padding: 54px;
    }
}
@media (max-width: 650px) {
    .modal-form-auth, .modal-form-tfa {
        width: 100%;
        height: 100%;
        border-radius: 0px;
        padding: 25px;
    }
    .modal-form-auth {
        box-shadow: unset;
    }
    .modal-form-tfa .tfa-digits {
        gap: 6px;
    }
    .modal-form-tfa .tfa-digit {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }
}
@media (max-width: 520px) {
    .absolute-form {
        padding: 16px;
    }
    .absolute-form .modal-form-cubes > .content-block-1,
    .absolute-form .modal-form-cubes > #content_email {
        padding: 32px 24px 28px;
        border-radius: 16px;
    }
    .modal-form-tfa {
        padding: 40px 24px;
        border-radius: 20px;
    }
}