body.vm-auth-page {
    margin: 0;
    min-height: 100vh;
    background-image:
        linear-gradient(180deg, rgba(6,10,16,var(--vm-auth-bg-overlay-top, 0.24)), rgba(6,10,16,var(--vm-auth-bg-overlay-bottom, 0.66))),
        var(--vm-auth-bg-image, none),
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 32%),
        linear-gradient(135deg, var(--vm-bg-page-start, #0b0f16) 0%, var(--vm-bg-page-start, #10151f) 45%, var(--vm-bg-page-end, #090c13) 100%);
    background-size: cover, cover, auto, auto;
    background-position: center, center, top right, center;
    background-repeat: no-repeat;
    color: var(--vm-text-primary, #ffffff);
    font-family: Inter, "Segoe UI", sans-serif;
}

body.vm-auth-page .site,
body.vm-auth-page .site-content,
body.vm-auth-page #content,
body.vm-auth-page #primary,
body.vm-auth-page .entry-content,
body.vm-auth-page .site-main,
body.vm-auth-page .ast-container,
body.vm-auth-page .ast-plain-container {
    background: transparent !important;
}

.vm-auth-shell {
    min-height: 100vh;
    padding: clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.vm-auth-grid {
    width: min(560px, 100%);
    min-height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(8, 12, 20, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.vm-auth-side {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%),
        var(--vm-auth-side-bg, #171c26);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.vm-auth-side-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vm-auth-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.vm-auth-description {
    margin: 0;
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--vm-text-secondary, rgba(255,255,255,0.78));
}

.vm-auth-side-points {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.vm-auth-side-point {
    position: relative;
    padding-left: 18px;
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
}

.vm-auth-side-point::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--vm-accent, #d71920);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.04);
}

.vm-auth-card {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.vm-auth-card-header {
    width: min(100%, 460px);
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.vm-auth-card-logo {
    display: block;
    width: auto;
    max-width: min(240px, 100%);
    max-height: 78px;
    margin: 0 auto;
}

.vm-auth-card-brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.vm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(100%, 460px);
}

.vm-auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vm-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vm-auth-field span {
    font-size: 0.93rem;
    font-weight: 700;
    color: rgba(255,255,255,0.94);
}

.vm-auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    font-size: 0.96rem;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vm-auth-field input:focus {
    outline: 0;
    border-color: var(--vm-accent, #d71920);
    box-shadow: 0 0 0 4px var(--vm-accent-light, rgba(215,25,32,0.14));
    transform: translateY(-1px);
}

.vm-auth-field-hint {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--vm-text-secondary, rgba(255,255,255,0.72));
}

.vm-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vm-text-secondary, rgba(255,255,255,0.78));
    font-size: 0.95rem;
}

.vm-auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--vm-accent, #d71920);
}

.vm-auth-help {
    margin: -4px 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--vm-text-secondary, rgba(255,255,255,0.7));
}

.vm-auth-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 14px 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--vm-accent, #d71920), var(--vm-accent-hover, #b9141a));
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 20px 40px var(--vm-accent-shadow, rgba(215,25,32,0.25));
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.vm-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 46px var(--vm-accent-shadow-strong, rgba(215,25,32,0.34));
}

.vm-auth-submit--link {
    width: 100%;
    box-sizing: border-box;
}

.vm-auth-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.94rem;
    width: min(100%, 460px);
}

.vm-auth-links--single {
    justify-content: flex-start;
}

.vm-auth-links a {
    color: var(--vm-text-secondary, rgba(255,255,255,0.78));
    flex: 1 1 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, opacity .2s ease;
}

.vm-auth-links a:last-child {
    text-align: right;
}

.vm-auth-links--single a {
    flex: 0 0 auto;
    text-align: left;
}

.vm-auth-links a:hover {
    color: var(--vm-accent, #ffffff);
}

.vm-auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.6;
    border: 1px solid transparent;
    width: min(100%, 460px);
}

.vm-auth-alert--success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.3);
    color: #d4ffe2;
}

.vm-auth-alert--error {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ffe1e1;
}

.vm-auth-alert--info {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.3);
    color: #dbeafe;
}

.vm-auth-guide {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    width: min(100%, 460px);
}

.vm-auth-guide--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.vm-auth-guide-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
}

.vm-auth-guide-list {
    margin: 0;
    padding-left: 18px;
    color: var(--vm-text-secondary, rgba(255,255,255,0.82));
}

.vm-auth-guide-list li + li {
    margin-top: 8px;
}

.vm-auth-empty {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(100%, 460px);
}

.vm-auth-empty p {
    margin: 0;
    color: var(--vm-text-secondary, rgba(255,255,255,0.78));
    line-height: 1.7;
}

@media (max-width: 900px) {
    .vm-auth-grid {
        grid-template-columns: 1fr;
    }
    .vm-auth-side {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

@media (max-width: 640px) {
    .vm-auth-shell {
        padding: 10px;
    }

    .vm-auth-grid {
        min-height: auto;
        border-radius: 22px;
    }

    .vm-auth-side,
    .vm-auth-card {
        padding: 22px;
    }

    .vm-auth-row {
        grid-template-columns: 1fr;
    }

    .vm-auth-links {
        gap: 12px;
        flex-wrap: nowrap;
        font-size: 0.88rem;
    }
}
