@import url("vars-4z4rlkZ.css");

body {
    background: radial-gradient(120% 100% at 30% 0%, #ffffff 0%, #ecf1f5 55%, #e4eaf0 100%);
    overflow-x: hidden;
}

html[data-theme="dark"] body {
    background: radial-gradient(120% 100% at 30% 0%, #1e2631 0%, #12181f 56%, #0b1117 100%);
}

.login, .reset-password {
    --login-space: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--footer-size));
    gap: var(--login-space);
}

.login {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    padding: 48px 0;
}

.login::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    background: radial-gradient(120% 100% at 30% 0%, #ffffff 0%, #ecf1f5 55%, #e4eaf0 100%);
}

html[data-theme="dark"] .login::before {
    background: radial-gradient(120% 100% at 30% 0%, #1e2631 0%, #12181f 56%, #0b1117 100%);
}

.shard {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(150deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 45%, rgba(255, 255, 255, .18) 100%);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow:
        -1.5px -1.5px 0 rgba(255, 255, 255, 1) inset,
        2px 3px 3px -1px rgba(20, 40, 60, .18) inset,
        -6px -6px 14px -4px rgba(255, 255, 255, .95),
        -2px -2px 4px rgba(255, 255, 255, .9),
        10px 16px 18px -6px rgba(20, 40, 60, .36),
        18px 26px 30px -10px rgba(20, 40, 60, .24);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] .shard {
    background: linear-gradient(150deg, rgba(79, 195, 215, .2) 0%, rgba(31, 43, 55, .54) 48%, rgba(10, 16, 22, .22) 100%);
    border-color: rgba(129, 212, 231, .24);
    box-shadow:
        -1.5px -1.5px 0 rgba(129, 212, 231, .16) inset,
        2px 3px 3px -1px rgba(0, 0, 0, .42) inset,
        -6px -6px 14px -4px rgba(79, 195, 215, .08),
        10px 16px 18px -6px rgba(0, 0, 0, .54),
        18px 26px 30px -10px rgba(0, 0, 0, .44);
}

.shard--sq {
    border-radius: 10px;
}

.shard--tri {
    width: 40px;
    height: 40px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .1) 100%);
    border: 0;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

html[data-theme="dark"] .shard--tri {
    background: linear-gradient(150deg, rgba(79, 195, 215, .22) 0%, rgba(31, 43, 55, .46) 52%, rgba(10, 16, 22, .16) 100%);
}

.shard1 {
    top: 6%;
    right: 9%;
    width: 26px;
    height: 26px;
    transform: rotate(20deg);
}

.shard2 {
    top: 2%;
    right: 15%;
    width: 44px;
    height: 44px;
    opacity: .9;
    transform: rotate(35deg);
}

.shard3 {
    top: 11%;
    right: 5%;
    width: 20px;
    height: 20px;
    opacity: .8;
    transform: rotate(50deg);
}

.shard4 {
    right: 2%;
    bottom: 10%;
    width: 30px;
    height: 30px;
    transform: rotate(18deg);
}

.shard5 {
    bottom: 5%;
    left: 8%;
    width: 34px;
    height: 34px;
    opacity: .85;
    transform: rotate(25deg);
}

.shard-tri1 {
    top: 26%;
    left: 11%;
    transform: rotate(-8deg);
}

.login-form, .reset-password-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    min-height: auto;
    padding: 40px 48px 36px;
    color: #101826;
    background:
        radial-gradient(130% 110% at 6% 2%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 24%, transparent 50%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.68) 32%, rgba(224, 229, 236, 0.55) 62%, rgba(198, 205, 216, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        -1.5px -1.5px 0 rgba(255, 255, 255, 0.95) inset,
        1.5px 1.5px 0 rgba(20, 34, 48, 0.16) inset,
        -36px -36px 60px -28px rgba(255, 255, 255, 0.9) inset,
        34px 40px 60px -26px rgba(20, 34, 48, 0.3) inset,
        6px 0 10px -6px rgba(20, 34, 48, 0.28) inset,
        0 8px 12px -6px rgba(20, 34, 48, 0.28) inset,
        -10px -10px 22px -18px rgba(255, 255, 255, 0.5),
        26px 34px 46px -20px rgba(20, 34, 48, 0.22),
        50px 66px 90px -30px rgba(20, 34, 48, 0.2),
        16px 0 30px -14px rgba(20, 34, 48, 0.28),
        0 22px 34px -16px rgba(20, 34, 48, 0.3);
    -webkit-backdrop-filter: blur(34px) saturate(105%);
    backdrop-filter: blur(34px) saturate(105%);
}

html[data-theme="dark"] .login-form,
html[data-theme="dark"] .reset-password-form {
    color: #f3f4f6;
    background:
        radial-gradient(130% 110% at 6% 2%, rgba(79, 195, 215, .2) 0%, rgba(37, 48, 59, .58) 26%, transparent 52%),
        linear-gradient(150deg, rgba(37, 48, 59, .95) 0%, rgba(30, 38, 49, .82) 42%, rgba(18, 24, 31, .9) 100%);
    border-color: rgba(129, 212, 231, .22);
    box-shadow:
        -1.5px -1.5px 0 rgba(129, 212, 231, .12) inset,
        1.5px 1.5px 0 rgba(0, 0, 0, .46) inset,
        -28px -28px 54px -30px rgba(79, 195, 215, .12) inset,
        30px 38px 60px -26px rgba(0, 0, 0, .56) inset,
        0 20px 46px -24px rgba(0, 0, 0, .76),
        34px 46px 74px -36px rgba(0, 0, 0, .58);
}

.login-form > *, .reset-password-form > * {
    position: relative;
    z-index: 1;
}

.login-form::before, .reset-password-form::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.5px;
    content: '';
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0.05) 55%, rgba(20, 34, 48, 0.12) 100%);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

html[data-theme="dark"] .login-form::before,
html[data-theme="dark"] .reset-password-form::before {
    background: linear-gradient(135deg, rgba(129, 212, 231, .42) 0%, rgba(79, 195, 215, .16) 34%, rgba(255, 255, 255, .04) 56%, rgba(0, 0, 0, .26) 100%);
}

.login-form__logo {
    position: relative;
    z-index: 1;
    max-width: 300px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(3px 5px 7px rgba(18, 40, 60, 0.2));
}

html[data-theme="dark"] .login-form__logo,
html[data-theme="dark"] .reset-password .logo {
    filter: drop-shadow(3px 5px 10px rgba(0, 0, 0, .55));
}

html[data-theme="dark"] .yandex-id-setup__qr-code {
    filter: invert(1);
}

.login-form h1, .reset-password-form h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    color: transparent;
    text-align: center;
    background: linear-gradient(90deg, #6a7688 0%, #33404f 50%, #101826 100%);
    background-clip: text;
    filter: drop-shadow(2px 3px 3px rgba(20, 40, 60, 0.18));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .login-form h1,
html[data-theme="dark"] .reset-password-form h1 {
    background: linear-gradient(90deg, #d7f3fa 0%, #81d4e7 48%, #f3f4f6 100%);
    background-clip: text;
    filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, .48));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-form__field {
    position: relative;
    z-index: 1;
}

.login-form__field .form-control,
.reset-password-form .form-control {
    height: 58px;
    padding-left: 52px;
    font-size: 15px;
    color: #101826;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(200, 210, 222, 0.7);
    border-radius: 16px;
    box-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.8) inset,
        2px 3px 6px -3px rgba(20, 34, 48, 0.18) inset;
}

html[data-theme="dark"] .login-form__field .form-control,
html[data-theme="dark"] .reset-password-form .form-control {
    color: #f3f4f6;
    background: rgba(18, 24, 31, .58);
    border-color: rgba(129, 212, 231, .26);
    box-shadow:
        -1px -1px 0 rgba(129, 212, 231, .1) inset,
        2px 3px 7px -3px rgba(0, 0, 0, .52) inset;
}

.login-form__field .form-control:hover,
.reset-password-form .form-control:hover {
    background: rgba(255, 255, 255, 0.52);
}

html[data-theme="dark"] .login-form__field .form-control:hover,
html[data-theme="dark"] .reset-password-form .form-control:hover {
    background: rgba(30, 38, 49, .78);
}

.login-form__field .form-control:focus,
.reset-password-form .form-control:focus {
    background: rgba(255, 255, 255, 0.64);
    border-color: #1a94a3;
    box-shadow: 0 0 0 4px rgba(0, 120, 153, 0.14);
}

html[data-theme="dark"] .login-form__field .form-control:focus,
html[data-theme="dark"] .reset-password-form .form-control:focus {
    color: #ffffff;
    background: rgba(37, 48, 59, .86);
    border-color: #4fc3d7;
    box-shadow: 0 0 0 4px rgba(79, 195, 215, .18);
}

.login-form__field .form-label {
    padding-left: 52px;
    font-size: 15px;
    color: #9aa5b1;
}

html[data-theme="dark"] .login-form__field .form-label,
html[data-theme="dark"] .reset-password-form .form-label,
html[data-theme="dark"] .reset-password-form label {
    color: #b6c0cc;
}

.login-form__field.form-floating > .form-control:focus ~ label::after,
.login-form__field.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.reset-password-form .form-floating > .form-control:focus ~ label::after,
.reset-password-form .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background-color: transparent;
}

html[data-theme="dark"] .login-form__field.form-floating > .form-control:focus ~ label::after,
html[data-theme="dark"] .login-form__field.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
html[data-theme="dark"] .reset-password-form .form-floating > .form-control:focus ~ label::after,
html[data-theme="dark"] .reset-password-form .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background-color: transparent;
}

.login-form__field-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 3;
    font-size: 26px;
    line-height: 1;
    color: rgb(0, 120, 153);
    filter: drop-shadow(1px 2px 2px rgba(20, 34, 48, 0.35));
    transform: translateY(-50%);
}

html[data-theme="dark"] .login-form__field-icon {
    color: #4fc3d7;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, .55));
}

.login-form__agreement {
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.5;
    letter-spacing: .1px;
    text-align: center;
    color: #101826;
}

html[data-theme="dark"] .login-form__agreement,
html[data-theme="dark"] .reset-password-form,
html[data-theme="dark"] .reset-password-form p {
    color: #f3f4f6;
}

.login-form__agreement a,
.login-form__restore-link {
    color: rgb(0, 120, 153);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .login-form__agreement a,
html[data-theme="dark"] .login-form__restore-link,
html[data-theme="dark"] .reset-password-form a,
html[data-theme="dark"] .link-back {
    color: #81d4e7;
}

.login-form__submit,
.reset-password-form .btn-primary {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    padding: 17px 15px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #4da0b7 0%, rgb(0, 120, 153) 45%, #00546b 100%);
    box-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.45) inset,
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        10px 14px 26px -10px rgba(0, 84, 107, 0.55),
        4px 6px 14px -4px rgba(0, 84, 107, 0.4);
    overflow: hidden;
}

html[data-theme="dark"] .login-form__submit,
html[data-theme="dark"] .reset-password-form .btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #4fc3d7 0%, #148291 46%, #0b5d6a 100%);
    box-shadow:
        -1px -1px 0 rgba(255, 255, 255, .22) inset,
        0 1px 0 rgba(255, 255, 255, .16) inset,
        10px 14px 26px -10px rgba(79, 195, 215, .38),
        4px 6px 16px -5px rgba(0, 0, 0, .58);
}

.login-form__submit::before,
.reset-password-form .btn-primary::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 50%;
    content: '';
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.login-form__submit:hover,
.login-form__submit:focus,
.reset-password-form .btn-primary:hover,
.reset-password-form .btn-primary:focus {
    background: linear-gradient(135deg, #4da0b7 0%, rgb(0, 120, 153) 45%, #00546b 100%);
    filter: brightness(1.06);
}

html[data-theme="dark"] .login-form__submit:hover,
html[data-theme="dark"] .login-form__submit:focus,
html[data-theme="dark"] .reset-password-form .btn-primary:hover,
html[data-theme="dark"] .reset-password-form .btn-primary:focus {
    background: linear-gradient(135deg, #5fd3e7 0%, #1ba3b5 46%, #148291 100%);
}

.login-form__restore-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    font-size: 15.5px;
    font-weight: 500;
    color: #101826;
    text-decoration: none;
}

.login-form__restore-link i {
    display: block;
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
    color: rgb(0, 120, 153);
    filter: drop-shadow(1px 2px 2px rgba(20, 34, 48, 0.3));
}

html[data-theme="dark"] .login-form__restore-link i {
    color: #81d4e7;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, .55));
}

.btn-primary {
    --bs-btn-color: var(--color-white);
    --bs-btn-bg: var(--color-brand-600);
    --bs-btn-border-color: var(--color-brand-600);
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-hover-bg: var(--color-brand-700);
    --bs-btn-hover-border-color: var(--color-brand-700);
}
.link-block {
    position: relative;
    z-index: 1;
    align-self: start;
}
.link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(0, 120, 153);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}

.link-back:hover {
    color: #00546b;
}

html[data-theme="dark"] .link-back:hover,
html[data-theme="dark"] .reset-password-form a:hover,
html[data-theme="dark"] .login-form__agreement a:hover,
html[data-theme="dark"] .login-form__restore-link:hover {
    color: #d7f3fa;
}

@media (max-width: 576px) {
    .shard {
        display: none;
    }

    .login {
        padding: 24px 0;
    }

    .login-form, .reset-password-form {
        padding: 40px 26px 34px;
        border-radius: 30px;
    }

    .login-form__logo {
        max-width: 230px;
    }

    .login-form h1, .reset-password-form h1 {
        font-size: 26px;
    }

    .login-form__field .form-control,
    .reset-password-form .form-control {
        height: 58px;
        padding-left: 52px;
        font-size: 18px;
    }

    .login-form__field .form-label {
        padding-left: 52px;
        font-size: 18px;
    }

    .login-form__field-icon {
        left: 16px;
        font-size: 24px;
    }
}
