:root {
    --auth-bg: #050914;
    --auth-card: rgba(13, 22, 42, 0.76);
    --auth-border: rgba(150, 188, 255, 0.2);
    --auth-text: #f5f8ff;
    --auth-muted: #a6b3cf;
    --auth-blue: #2f80ff;
    --auth-cyan: #67e8f9;
    --auth-green: #35d399;
    --auth-red: #ff6b8a;
    --auth-amber: #facc15;
}

body.vk-auth-body,
.vk-auth-surface {
    min-height: 100vh;
    min-height: 100svh;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 16% 10%, rgba(47, 128, 255, 0.32), transparent 28rem),
        radial-gradient(circle at 84% 82%, rgba(103, 232, 249, 0.18), transparent 28rem),
        linear-gradient(135deg, #050914 0%, #081121 48%, #050914 100%);
}

body.vk-auth-body::before,
.vk-auth-surface::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.16) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 74%);
    animation: vk-grid-drift 22s linear infinite;
}

@keyframes vk-grid-drift {
    to { background-position: 64px 64px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.vk-auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.vk-auth-card,
.vk-enterprise-card {
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        var(--auth-card);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.44),
        0 0 64px rgba(36, 107, 254, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(24px) saturate(142%);
}

.vk-auth-card {
    width: min(100%, 760px);
    padding: clamp(1.35rem, 4vw, 2.4rem);
}

.vk-auth-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vk-auth-mark {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    border: 1px solid rgba(164, 202, 255, 0.34);
    background: linear-gradient(145deg, rgba(66, 165, 255, 0.22), rgba(103, 232, 249, 0.08));
    box-shadow: 0 16px 40px rgba(36, 107, 254, 0.26);
}

.vk-auth-mark img {
    max-width: 58px;
    max-height: 58px;
}

.vk-auth-title {
    margin: 0;
    font-weight: 800;
    line-height: 1.08;
    background: linear-gradient(135deg, #fff 10%, #bcdcff 48%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vk-auth-muted {
    color: var(--auth-muted);
}

.vk-stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin: 1.2rem 0;
}

.vk-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #90a2c5;
    font-size: 0.85rem;
}

.vk-step span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(164, 202, 255, 0.26);
    background: rgba(255, 255, 255, 0.05);
}

.vk-step.is-active,
.vk-step.is-done {
    color: #eef6ff;
}

.vk-step.is-active span,
.vk-step.is-done span {
    border-color: rgba(103, 232, 249, 0.7);
    background: linear-gradient(135deg, #246bfe, #67e8f9);
    color: #fff;
}

.vk-floating .form-control,
.vk-floating .form-select {
    min-height: 58px;
    border: 1px solid rgba(164, 202, 255, 0.22);
    border-radius: 17px;
    color: var(--auth-text);
    background-color: rgba(5, 12, 26, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vk-floating label {
    color: #9daccc;
}

.vk-floating .form-control:focus,
.vk-floating .form-select:focus {
    border-color: rgba(103, 232, 249, 0.75);
    background-color: rgba(8, 17, 36, 0.88);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(66, 165, 255, 0.14);
}

.vk-btn-gradient {
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #1f6fff 0%, #35b7ff 54%, #67e8f9 100%);
    box-shadow: 0 18px 44px rgba(36, 107, 254, 0.34);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.vk-btn-gradient:hover,
.vk-btn-gradient:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(36, 107, 254, 0.42);
}

.vk-auth-link {
    color: #8fd3ff;
    text-decoration: none;
}

.vk-auth-link:hover {
    color: #d8f4ff;
    text-decoration: underline;
}

.vk-credential-box {
    border: 1px solid rgba(103, 232, 249, 0.26);
    border-radius: 18px;
    background: rgba(5, 12, 26, 0.78);
    padding: 1rem;
}

.vk-enterprise-page {
    position: relative;
    z-index: 1;
}

.vk-enterprise-hero {
    border-radius: 28px;
    border: 1px solid rgba(150, 188, 255, 0.2);
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        radial-gradient(circle at 0% 0%, rgba(47, 128, 255, 0.26), transparent 24rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.vk-enterprise-stat {
    border: 1px solid rgba(150, 188, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

.vk-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.vk-status-pending { background: rgba(250, 204, 21, 0.14); color: #fef3c7; }
.vk-status-active,
.vk-status-approved { background: rgba(53, 211, 153, 0.14); color: #d1fae5; }
.vk-status-rejected,
.vk-status-suspended,
.vk-status-inactive { background: rgba(255, 107, 138, 0.14); color: #ffe4ea; }

.vk-table-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .vk-stepper {
        grid-template-columns: 1fr;
    }
    .vk-auth-card {
        border-radius: 22px;
        padding: 1.25rem;
    }
}
