/* Панель входа (header.php → .portal-auth-layer). Перенесено из mvp-theme.css. */
.portal-auth-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.portal-auth-layer[hidden] {
    display: none;
}

.portal-auth-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 18, 17, .58);
    cursor: default;
}

.portal-auth-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, 100%);
    height: 100%;
    max-height: 100dvh;
    padding: 64px 30px 32px;
    overflow-y: auto;
    color: #1f1d1b;
    background: #fff;
    box-shadow: -24px 0 70px rgba(20, 18, 17, .2);
    outline: 0;
    animation: portal-auth-slide-in .22s ease-out;
}

.portal-auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e5e2de;
    border-radius: 50%;
    color: inherit;
    background: #fff;
    cursor: pointer;
}

.portal-auth-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.portal-auth-drawer .auth-brand {
    margin-bottom: 20px;
    text-align: center;
}

.portal-auth-drawer .brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    background: #1a5fd0;
    font-weight: 700;
    font-size: 20px;
}

.portal-auth-drawer .portal-auth-form {
    margin: auto 0;
}

.portal-auth-form h1,
.portal-auth-form h2 {
    margin: 0 0 9px;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -.03em;
    text-align: center;
}

.portal-auth-form > .muted {
    margin: 0 0 18px;
    color: #6b6660;
    text-align: center;
}

.portal-auth-form .auth-note {
    margin: 12px 0;
    color: #6b6660;
    font-size: 14px;
    text-align: center;
}

.portal-auth-form .auth-terms {
    margin: 12px 0 0;
    color: #8a847d;
    font-size: 12px;
    text-align: center;
}

.portal-auth-form .portal-vk-one-tap {
    margin-bottom: 12px;
}

body.portal-auth-open {
    overflow: hidden;
}

@keyframes portal-auth-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (max-width: 430px) {
    .portal-auth-drawer {
        padding: 58px 20px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-auth-drawer {
        animation: none;
    }
}
