:root {
    --pvt-sidebar: 248px;
    --pvt-ink: #191b21;
    --pvt-muted: #848892;
    --pvt-primary: #7257e8;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f4f5f8;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f4f5f8;
    color: var(--pvt-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pvt-primary);
}

.pvt-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--pvt-sidebar) minmax(0, 1fr);
}

.pvt-sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--pvt-sidebar);
    flex-direction: column;
    border-right: 1px solid #e8e9ed;
    background: #fff;
}

.admin-bar .pvt-sidebar {
    top: 32px;
}

.pvt-brand {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 21px;
}

.pvt-brand__link,
.pvt-mobile-head > a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--pvt-ink);
    text-decoration: none;
}

.pvt-brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #8067ec, #6045d5);
    box-shadow: 0 7px 16px rgba(114, 87, 232, .24);
    color: #fff;
    font-size: 18px;
    font-weight: 820;
}

.pvt-brand strong,
.pvt-brand small {
    display: block;
}

.pvt-brand strong {
    color: var(--pvt-ink);
    font-size: 17px;
    letter-spacing: -.025em;
}

.pvt-brand small {
    margin-top: 2px;
    color: #a0a3aa;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pvt-sidebar-close {
    display: none;
}

.pvt-nav {
    flex: 1 1 auto;
    padding: 10px 13px;
}

.pvt-nav__label {
    display: block;
    margin: 0 10px 8px;
    color: #afb2ba;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pvt-nav__label--second {
    margin-top: 25px;
}

.pvt-nav a {
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    border-radius: 10px;
    padding: 10px 12px;
    color: #737781;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.pvt-nav a:hover {
    background: #f7f6fc;
    color: #4c4f58;
}

.pvt-nav a.is-active {
    background: #f0edff;
    color: #664bd7;
}

.pvt-nav svg,
.pvt-user svg,
.pvt-menu-button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pvt-nav a:first-of-type svg {
    fill: currentColor;
    stroke: none;
}

.pvt-user {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    margin: 13px;
    border-top: 1px solid #ececf0;
    padding: 18px 7px 7px;
}

.pvt-user img,
.pvt-mobile-head img {
    border-radius: 11px;
}

.pvt-user strong,
.pvt-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pvt-user strong {
    color: #33363e;
    font-size: 11px;
}

.pvt-user small {
    margin-top: 3px;
    color: #9a9da5;
    font-size: 8.5px;
}

.pvt-user > a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: #92959e;
}

.pvt-user > a:hover {
    background: #f2f2f5;
    color: #555962;
}

.pvt-stage {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    grid-column: 2;
    flex-direction: column;
}

.pvt-main {
    min-width: 0;
    flex: 1 0 auto;
}

.pvt-mobile-head {
    display: none;
}

.pvt-overlay {
    display: none;
}

.pvt-footer {
    display: flex;
    justify-content: space-between;
    width: min(100% - 40px, 1280px);
    margin: auto auto 0;
    border-top: 1px solid #e2e3e8;
    padding: 17px 0 24px;
    color: #a0a3aa;
    font-size: 9px;
}

.pvt-content {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
    padding: 50px 0 70px;
}

.pvt-content h1 {
    margin: 0 0 24px;
    font-size: 38px;
    letter-spacing: -.04em;
}

.pvt-content article {
    margin-bottom: 18px;
    border: 1px solid #e7e8ec;
    border-radius: 14px;
    padding: 22px;
    background: #fff;
}

.pvt-content article h2 {
    margin-top: 0;
}

.pvt-not-found {
    display: grid;
    min-height: 75vh;
    place-content: center;
    padding: 30px;
    text-align: center;
}

.pvt-not-found > span {
    color: var(--pvt-primary);
    font-size: 90px;
    font-weight: 850;
    letter-spacing: -.07em;
}

.pvt-not-found h1 {
    margin: 0 0 8px;
}

.pvt-not-found p {
    margin: 0 0 20px;
    color: var(--pvt-muted);
}

.pvt-not-found a {
    justify-self: center;
    border-radius: 10px;
    padding: 11px 16px;
    background: var(--pvt-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 782px) {
    .admin-bar .pvt-sidebar {
        top: 46px;
    }
}

@media (max-width: 900px) {
    .pvt-layout {
        display: block;
    }

    .pvt-sidebar {
        z-index: 1001;
        width: min(310px, 86vw);
        transform: translateX(-103%);
        box-shadow: 18px 0 50px rgba(20,22,28,.18);
        transition: transform .22s ease;
    }

    .pvt-menu-open .pvt-sidebar {
        transform: translateX(0);
    }

    .pvt-sidebar-close {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: #f2f2f5;
        color: #666a73;
        font: 300 23px/1 sans-serif;
    }

    .pvt-stage {
        min-height: 100vh;
    }

    .pvt-mobile-head {
        position: sticky;
        z-index: 90;
        top: 0;
        display: flex;
        height: 64px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e7e8ec;
        padding: 0 14px;
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(12px);
    }

    .admin-bar .pvt-mobile-head {
        top: 32px;
    }

    .pvt-mobile-head > a {
        gap: 8px;
    }

    .pvt-mobile-head .pvt-brand__mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 9px;
        font-size: 15px;
    }

    .pvt-mobile-head strong {
        font-size: 14px;
    }

    .pvt-menu-button {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 0;
        border-radius: 9px;
        background: #f3f3f6;
        color: #565a64;
    }

    .pvt-overlay {
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(13,15,19,.52);
        backdrop-filter: blur(3px);
    }

    .pvt-menu-open .pvt-overlay {
        display: block;
    }

    .pvt-menu-open,
    .pvt-menu-open body {
        overflow: hidden;
    }

    .pvt-footer {
        width: min(100% - 24px, 1280px);
    }
}

@media (max-width: 782px) {
    .admin-bar .pvt-mobile-head {
        top: 46px;
    }
}

/* Frontend login --------------------------------------------------------- */

.pvt-front-page.pvt-guest {
    background:
        radial-gradient(circle at 14% 12%, rgba(126, 103, 236, .12), transparent 32%),
        radial-gradient(circle at 88% 82%, rgba(114, 87, 232, .08), transparent 30%),
        #f4f3f8;
}

.pvt-front-page.pvt-guest .pvt-layout {
    display: block;
}

.pvt-front-page.pvt-guest .pvt-sidebar,
.pvt-front-page.pvt-guest .pvt-mobile-head,
.pvt-front-page.pvt-guest .pvt-overlay,
.pvt-front-page.pvt-guest .pvt-footer {
    display: none !important;
}

.pvt-front-page.pvt-guest .pvt-stage {
    display: block;
    min-height: 100vh;
}

.pvt-auth {
    display: grid;
    width: min(1180px, calc(100% - 56px));
    min-height: min(760px, calc(100vh - 64px));
    grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
    margin: 32px auto;
    overflow: hidden;
    border: 1px solid rgba(46, 37, 84, .08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(38, 30, 73, .14);
}

.pvt-auth svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pvt-auth__visual {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 42px 46px 32px;
    background:
        radial-gradient(circle at 12% 6%, rgba(255,255,255,.17), transparent 27%),
        radial-gradient(circle at 91% 71%, rgba(208,195,255,.19), transparent 29%),
        linear-gradient(145deg, #755be3 0%, #5e42cd 55%, #4f37bb 100%);
    color: #fff;
}

.pvt-auth__visual::before,
.pvt-auth__visual::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}

.pvt-auth__visual::before {
    width: 430px;
    height: 430px;
    right: -270px;
    top: -205px;
    box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 105px rgba(255,255,255,.02);
}

.pvt-auth__visual::after {
    width: 270px;
    height: 270px;
    left: -190px;
    bottom: -150px;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025);
}

.pvt-auth__brand,
.pvt-auth__mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.pvt-auth__brand .pvt-brand__mark {
    background: rgba(255,255,255,.17);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 30px rgba(27,15,87,.18);
    backdrop-filter: blur(10px);
}

.pvt-auth__brand strong,
.pvt-auth__brand small,
.pvt-auth__mobile-brand strong,
.pvt-auth__mobile-brand small {
    display: block;
}

.pvt-auth__brand strong,
.pvt-auth__mobile-brand strong {
    font-size: 18px;
    letter-spacing: -.025em;
}

.pvt-auth__brand small,
.pvt-auth__mobile-brand small {
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: .07em;
    opacity: .62;
    text-transform: uppercase;
}

.pvt-auth__pitch {
    position: relative;
    z-index: 2;
    max-width: 450px;
    margin: 92px 0 38px;
}

.pvt-auth__eyebrow,
.pvt-auth__welcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pvt-auth__eyebrow {
    color: #d8d0ff;
}

.pvt-auth__eyebrow::before {
    width: 22px;
    height: 1px;
    background: currentColor;
    content: "";
}

.pvt-auth__pitch h1 {
    max-width: 430px;
    margin: 18px 0 17px;
    font-size: clamp(39px, 4.2vw, 57px);
    font-weight: 790;
    letter-spacing: -.055em;
    line-height: .99;
}

.pvt-auth__pitch > p {
    max-width: 405px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.65;
}

.pvt-auth__features {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.pvt-auth__features span {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px;
    padding: 6px 10px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.86);
    font-size: 9.5px;
    font-weight: 650;
    backdrop-filter: blur(8px);
}

.pvt-auth__features svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.4;
}

.pvt-auth__preview {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(25,15,75,.22);
    box-shadow: 0 22px 46px rgba(29,18,86,.2);
    backdrop-filter: blur(13px);
}

.pvt-auth__preview-head {
    display: flex;
    height: 35px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.11);
    padding: 0 13px;
}

.pvt-auth__preview-head span {
    display: flex;
    gap: 4px;
}

.pvt-auth__preview-head i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.34);
}

.pvt-auth__preview-head b {
    color: rgba(255,255,255,.5);
    font-size: 7px;
    font-weight: 650;
    letter-spacing: .04em;
}

.pvt-auth__preview-body {
    padding: 15px;
}

.pvt-auth__document {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.pvt-auth__document-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.16);
    font-size: 11px;
    font-weight: 800;
}

.pvt-auth__document b,
.pvt-auth__document small {
    display: block;
}

.pvt-auth__document b {
    font-size: 9px;
}

.pvt-auth__document small {
    margin-top: 3px;
    color: rgba(255,255,255,.48);
    font-size: 7px;
}

.pvt-auth__row {
    display: grid;
    height: 24px;
    grid-template-columns: 45% 26% 20%;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.08);
}

.pvt-auth__row span,
.pvt-auth__row b,
.pvt-auth__row i {
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.13);
}

.pvt-auth__row b {
    background: rgba(255,255,255,.2);
}

.pvt-auth__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    border-radius: 99px;
    padding: 6px 9px;
    background: rgba(91, 229, 159, .13);
    color: #baf2d5;
    font-size: 7.5px;
    font-weight: 700;
}

.pvt-auth__status svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.5;
}

.pvt-auth__copyright {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    color: rgba(255,255,255,.37);
    font-size: 8px;
}

.pvt-auth__panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 54px clamp(44px, 6vw, 92px);
    background:
        radial-gradient(circle at 100% 0, rgba(114,87,232,.045), transparent 27%),
        #fff;
}

.pvt-auth__form-wrap {
    width: min(100%, 405px);
}

.pvt-auth__mobile-brand {
    display: none;
    margin-bottom: 48px;
    color: var(--pvt-ink);
}

.pvt-auth__welcome {
    color: var(--pvt-primary);
}

.pvt-auth__form-wrap h2 {
    margin: 10px 0 9px;
    color: #1e2027;
    font-size: 39px;
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1;
}

.pvt-auth__intro {
    margin: 0 0 32px;
    color: #858994;
    font-size: 13px;
    line-height: 1.55;
}

.pvt-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -14px 0 20px;
    border-radius: 11px;
    padding: 11px 12px;
    font-size: 11px;
    line-height: 1.45;
}

.pvt-auth__notice svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.pvt-auth__notice--error {
    background: #fff0f0;
    color: #a53a3a;
}

.pvt-auth__notice--success {
    background: #eaf8f0;
    color: #23754d;
}

.pvt-auth__form > label {
    display: block;
    margin: 0 0 8px;
    color: #454851;
    font-size: 11px;
    font-weight: 720;
}

.pvt-auth__input {
    position: relative;
    display: flex;
    height: 52px;
    align-items: center;
    margin-bottom: 19px;
    border: 1px solid #dfe1e7;
    border-radius: 12px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.pvt-auth__input:focus-within {
    border-color: var(--pvt-primary);
    box-shadow: 0 0 0 4px rgba(114,87,232,.1);
}

.pvt-auth__input > svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-left: 15px;
    color: #9a9da6;
}

.pvt-auth__input input {
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    padding: 0 13px;
    background: transparent;
    color: #23252c;
    font: inherit;
    font-size: 13px;
}

.pvt-auth__input input::placeholder {
    color: #b1b4bc;
}

.pvt-password-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    margin-right: 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9699a2;
    cursor: pointer;
}

.pvt-password-toggle:hover,
.pvt-password-toggle.is-visible {
    background: #f4f2fc;
    color: var(--pvt-primary);
}

.pvt-password-toggle svg {
    width: 19px;
    height: 19px;
}

.pvt-auth__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 1px 0 24px;
}

.pvt-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6e727d;
    font-size: 10.5px;
    cursor: pointer;
}

.pvt-auth__remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--pvt-primary);
}

.pvt-auth__options > a {
    color: var(--pvt-primary);
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
}

.pvt-auth__options > a:hover {
    text-decoration: underline;
}

.pvt-auth__submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #7a61e9, #6347d3);
    box-shadow: 0 12px 24px rgba(102,72,211,.24);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.pvt-auth__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 29px rgba(102,72,211,.3);
}

.pvt-auth__submit svg {
    width: 17px;
    height: 17px;
    transition: transform .16s ease;
}

.pvt-auth__submit:hover svg {
    transform: translateX(3px);
}

.pvt-auth__help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 27px 0 0;
    color: #a0a3ab;
    font-size: 9.5px;
}

.pvt-auth__help svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 980px) {
    .pvt-auth {
        grid-template-columns: minmax(350px, .78fr) minmax(420px, 1.22fr);
    }

    .pvt-auth__visual {
        padding: 35px 32px 28px;
    }

    .pvt-auth__pitch {
        margin-top: 70px;
    }

    .pvt-auth__features {
        display: grid;
        align-items: start;
        justify-content: start;
    }

    .pvt-auth__panel {
        padding-inline: 48px;
    }
}

@media (max-width: 760px) {
    .pvt-front-page.pvt-guest {
        background: #fff;
    }

    .pvt-auth {
        display: block;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .admin-bar .pvt-auth {
        min-height: calc(100vh - 46px);
    }

    .pvt-auth__visual {
        min-height: 186px;
        padding: 25px 24px 34px;
        border-radius: 0 0 28px 28px;
    }

    .pvt-auth__brand,
    .pvt-auth__preview,
    .pvt-auth__copyright,
    .pvt-auth__features {
        display: none;
    }

    .pvt-auth__pitch {
        margin: 22px 0 0;
        text-align: center;
    }

    .pvt-auth__pitch h1 {
        max-width: 390px;
        margin: 12px auto 10px;
        font-size: 34px;
    }

    .pvt-auth__pitch > p {
        max-width: 390px;
        margin-inline: auto;
        font-size: 11px;
        line-height: 1.5;
    }

    .pvt-auth__eyebrow {
        font-size: 8px;
    }

    .pvt-auth__panel {
        display: block;
        padding: 39px 24px 42px;
    }

    .pvt-auth__form-wrap {
        max-width: 430px;
        margin: 0 auto;
    }

    .pvt-auth__mobile-brand {
        display: flex;
        margin-bottom: 34px;
    }

    .pvt-auth__form-wrap h2 {
        font-size: 34px;
    }
}

@media (max-width: 420px) {
    .pvt-auth__visual {
        min-height: 170px;
        padding-inline: 20px;
    }

    .pvt-auth__pitch h1 {
        font-size: 30px;
    }

    .pvt-auth__pitch > p {
        max-width: 325px;
    }

    .pvt-auth__panel {
        padding: 32px 19px 38px;
    }

    .pvt-auth__options {
        align-items: flex-start;
    }
}
