/* Страница входа — анимированный фон и glass-карточка */

.bb-auth-page {
    overflow: hidden;
}

.bb-auth-page .nk-header,
.bb-auth-page .nk-footer {
    display: none !important;
}

.bb-auth-page .nk-wrap {
    padding: 0;
}

.bb-auth-page .nk-content {
    padding: 0;
    min-height: 100vh;
}

.bb-auth-page .nk-content .container-fluid,
.bb-auth-page .nk-content-inner,
.bb-auth-page .nk-content-body {
    padding: 0;
    max-width: none;
    min-height: 100vh;
}

.bb-auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: 5.5rem;
    overflow: hidden;
}

/* --- Фон --- */

.bb-auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 35%, #16213e 70%, #0f3460 100%);
}

.bb-auth-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(101, 118, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(44, 55, 130, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 90%, rgba(101, 118, 255, 0.15) 0%, transparent 40%);
    animation: bb-auth-bg-shift 12s ease-in-out infinite alternate;
}

@keyframes bb-auth-bg-shift {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    100% { opacity: 0.85; transform: scale(1.05) translate(-2%, -1%); }
}

.bb-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}

.bb-auth-orb--1 {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    background: #6576ff;
    top: -10%;
    left: -8%;
    animation: bb-auth-float-1 18s ease-in-out infinite;
}

.bb-auth-orb--2 {
    width: min(360px, 45vw);
    height: min(360px, 45vw);
    background: #2c3782;
    bottom: -5%;
    right: -5%;
    animation: bb-auth-float-2 22s ease-in-out infinite;
}

.bb-auth-orb--3 {
    width: min(280px, 35vw);
    height: min(280px, 35vw);
    background: rgba(101, 118, 255, 0.6);
    top: 45%;
    left: 55%;
    animation: bb-auth-float-3 15s ease-in-out infinite;
}

@keyframes bb-auth-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8%, 12%) scale(1.08); }
    66% { transform: translate(-5%, 5%) scale(0.95); }
}

@keyframes bb-auth-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -8%) scale(1.1); }
}

@keyframes bb-auth-float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(calc(-50% + 6%), calc(-50% - 8%)) scale(1.15); }
}

.bb-auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
    animation: bb-auth-grid-drift 40s linear infinite;
}

@keyframes bb-auth-grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

.bb-auth-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(101, 118, 255, 0.08) 60deg,
        transparent 120deg
    );
    animation: bb-auth-shine-spin 25s linear infinite;
    pointer-events: none;
}

@keyframes bb-auth-shine-spin {
    to { transform: rotate(360deg); }
}

/* --- Сцена: выплаты, документы, данные --- */

.bb-auth-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bb-auth-widget {
    position: absolute;
    width: 200px;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.85);
    animation: bb-auth-widget-float 8s ease-in-out infinite;
}

.bb-auth-widget-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.bb-auth-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(101, 118, 255, 0.25);
    color: #a8b4ff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.bb-auth-widget-label {
    flex: 1;
    font-weight: 600;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-auth-badge {
    font-size: 0.5625rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.bb-auth-badge--ok {
    background: rgba(30, 224, 172, 0.2);
    color: #1ee0ac;
    animation: bb-auth-badge-pulse 2s ease-in-out infinite;
}

.bb-auth-badge--proc {
    background: rgba(101, 118, 255, 0.25);
    color: #a8b4ff;
    animation: bb-auth-badge-blink 1.2s ease-in-out infinite;
}

@keyframes bb-auth-badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(30, 224, 172, 0); }
    50% { opacity: 0.85; box-shadow: 0 0 12px rgba(30, 224, 172, 0.35); }
}

@keyframes bb-auth-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bb-auth-widget-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* Компактные виджеты */
.bb-auth-widget--sm {
    width: 172px;
    padding: 0.6rem 0.7rem;
    animation-duration: 10s;
}

.bb-auth-widget-icon--warn {
    background: rgba(244, 189, 14, 0.2);
    color: #f4bd0e;
}

.bb-auth-badge--warn {
    background: rgba(244, 189, 14, 0.2);
    color: #f4bd0e;
    animation: bb-auth-badge-blink 1.5s ease-in-out infinite;
}

.bb-auth-progress--warn .bb-auth-progress-bar {
    background: linear-gradient(90deg, #f4bd0e, #ff8c00);
}

.bb-auth-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    padding: 0.2rem 0;
    color: rgba(255, 255, 255, 0.5);
}

.bb-auth-kv strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.bb-auth-kv-accent {
    color: #1ee0ac !important;
}

/* Выплата */
.bb-auth-widget--payout {
    top: 7%;
    left: 3%;
    width: 210px;
    animation-duration: 9s;
    animation-delay: -1s;
}

.bb-auth-widget-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1ee0ac;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    animation: bb-auth-amount-glow 3s ease-in-out infinite;
}

.bb-auth-widget-amount small {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.15rem;
}

@keyframes bb-auth-amount-glow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 20px rgba(30, 224, 172, 0.4); }
}

.bb-auth-widget-meta {
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.5rem;
}

.bb-auth-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.bb-auth-progress-bar {
    display: block;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #6576ff, #1ee0ac);
    border-radius: 4px;
    animation: bb-auth-progress-run 2.8s ease-in-out infinite;
}

@keyframes bb-auth-progress-run {
    0% { width: 15%; margin-left: 0; }
    50% { width: 85%; margin-left: 0; }
    100% { width: 15%; margin-left: 85%; }
}

/* Документ */
.bb-auth-widget--doc {
    top: 7%;
    right: 3%;
    width: 195px;
    animation-duration: 10s;
    animation-delay: -3s;
}

.bb-auth-doc-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.bb-auth-doc-lines span {
    display: block;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    transform-origin: left;
    animation: bb-auth-line-in 2.4s ease-in-out infinite;
}

.bb-auth-doc-lines span:nth-child(1) { width: 95%; animation-delay: 0s; }
.bb-auth-doc-lines span:nth-child(2) { width: 78%; animation-delay: 0.3s; }
.bb-auth-doc-lines span:nth-child(3) { width: 88%; animation-delay: 0.6s; }
.bb-auth-doc-lines .bb-auth-doc-short { width: 45%; animation-delay: 0.9s; }

@keyframes bb-auth-line-in {
    0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
    40%, 60% { transform: scaleX(1); opacity: 1; }
}

.bb-auth-widget-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-auth-doc-pct {
    font-weight: 700;
    color: #6576ff;
    font-size: 0.75rem;
    animation: bb-auth-pct-pulse 2.4s ease-in-out infinite;
}

@keyframes bb-auth-pct-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* Форма / данные */
.bb-auth-widget--form {
    left: 1%;
    top: 30%;
    width: 185px;
    animation-duration: 11s;
    animation-delay: -5s;
}

/* Оповещение — заполняет пустоту слева */
.bb-auth-widget--notify {
    left: 2%;
    top: 54%;
    width: 188px;
    animation-duration: 10s;
    animation-delay: -9s;
}

.bb-auth-notify-user {
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

.bb-auth-notify-msg {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.35;
    padding: 0.35rem 0.45rem;
    background: rgba(101, 118, 255, 0.12);
    border-radius: 8px;
    border-left: 2px solid #6576ff;
    animation: bb-auth-msg-pulse 2.5s ease-in-out infinite;
}

@keyframes bb-auth-msg-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; box-shadow: 0 0 14px rgba(101, 118, 255, 0.2); }
}

.bb-auth-notify-waves {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 22px;
    margin-top: 0.5rem;
}

.bb-auth-notify-waves span {
    display: block;
    width: 4px;
    height: 8px;
    background: #6576ff;
    border-radius: 4px;
    animation: bb-auth-wave 1s ease-in-out infinite;
}

.bb-auth-notify-waves span:nth-child(1) { animation-delay: 0s; }
.bb-auth-notify-waves span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.bb-auth-notify-waves span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bb-auth-wave {
    0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.bb-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bb-auth-field {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.35rem;
    align-items: center;
}

.bb-auth-field-lbl {
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.4);
}

.bb-auth-field-val {
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.bb-auth-type::after {
    content: attr(data-text);
    display: inline-block;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    vertical-align: top;
    border-right: 1px solid #6576ff;
    animation: bb-auth-typing 4s steps(14) infinite;
}

.bb-auth-type--delay::after {
    animation-delay: 1.5s;
}

@keyframes bb-auth-typing {
    0%, 15% { width: 0; }
    45%, 75% { width: 100%; border-color: #6576ff; }
    90%, 100% { width: 100%; border-color: transparent; }
}

.bb-auth-fill-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6576ff, rgba(101, 118, 255, 0.5));
    border-radius: 4px;
    animation: bb-auth-field-fill 3.5s ease-in-out infinite;
}

@keyframes bb-auth-field-fill {
    0%, 100% { width: 20%; }
    50% { width: 92%; }
}

/* Реестр */
.bb-auth-widget--table {
    right: 1%;
    top: 30%;
    width: 200px;
    animation-duration: 9.5s;
    animation-delay: -2s;
}

.bb-auth-rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bb-auth-row {
    display: grid;
    grid-template-columns: 1fr auto 14px;
    gap: 0.4rem;
    align-items: center;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
}

.bb-auth-row > span:first-child {
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    animation: bb-auth-row-pulse 2s ease-in-out infinite;
}

.bb-auth-row:nth-child(1) > span:first-child { width: 70%; }
.bb-auth-row:nth-child(2) > span:first-child { width: 55%; animation-delay: 0.4s; }
.bb-auth-row:nth-child(3) > span:first-child { width: 80%; animation-delay: 0.8s; }

.bb-auth-row-sum {
    font-weight: 600;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
}

.bb-auth-row-st {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.bb-auth-row-st--ok {
    background: #1ee0ac;
    box-shadow: 0 0 8px rgba(30, 224, 172, 0.6);
    animation: bb-auth-check-pop 1.5s ease-in-out infinite;
}

.bb-auth-row-st--wait {
    background: #f4bd0e;
    animation: bb-auth-wait-blink 1s ease-in-out infinite;
}

.bb-auth-row--active {
    background: rgba(101, 118, 255, 0.15);
    border: 1px solid rgba(101, 118, 255, 0.25);
    animation: bb-auth-row-highlight 2.5s ease-in-out infinite;
}

@keyframes bb-auth-row-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes bb-auth-row-highlight {
    0%, 100% { box-shadow: 0 0 0 rgba(101, 118, 255, 0); }
    50% { box-shadow: 0 0 16px rgba(101, 118, 255, 0.25); }
}

@keyframes bb-auth-check-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes bb-auth-wait-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* График */
.bb-auth-widget--chart {
    bottom: 5%;
    left: 2%;
    width: 175px;
    animation-duration: 12s;
    animation-delay: -4s;
}

.bb-auth-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 48px;
    padding-top: 0.25rem;
}

.bb-auth-bars span {
    flex: 1;
    height: var(--h, 50%);
    min-height: 4px;
    background: linear-gradient(180deg, #6576ff 0%, rgba(101, 118, 255, 0.35) 100%);
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
    animation: bb-auth-bar-grow 2.5s ease-in-out infinite;
}

.bb-auth-bars span:nth-child(1) { animation-delay: 0s; }
.bb-auth-bars span:nth-child(2) { animation-delay: 0.15s; }
.bb-auth-bars span:nth-child(3) { animation-delay: 0.3s; }
.bb-auth-bars span:nth-child(4) { animation-delay: 0.45s; }
.bb-auth-bars span:nth-child(5) { animation-delay: 0.6s; }
.bb-auth-bars span:nth-child(6) { animation-delay: 0.75s; }
.bb-auth-bars span:nth-child(7) { animation-delay: 0.9s; }

@keyframes bb-auth-bar-grow {
    0%, 100% { transform: scaleY(0.55); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Страховка */
.bb-auth-widget--insurance {
    bottom: 7%;
    right: 3%;
    animation-delay: -6s;
}

/* Паспорт */
.bb-auth-widget--passport {
    right: 2%;
    top: 52%;
    animation-delay: -4s;
}

.bb-auth-passport-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.bb-auth-passport-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.bb-auth-passport-step--on {
    background: rgba(101, 118, 255, 0.35);
    color: #a8b4ff;
    box-shadow: 0 0 12px rgba(101, 118, 255, 0.4);
    animation: bb-auth-step-pulse 2s ease-in-out infinite;
}

.bb-auth-passport-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bb-auth-passport-line::after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #6576ff, transparent);
    animation: bb-auth-line-flow 2.5s ease-in-out infinite;
}

@keyframes bb-auth-step-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes bb-auth-line-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Ведомость */
.bb-auth-widget--statement {
    top: 26%;
    right: 12%;
    animation-delay: -7s;
}

.bb-auth-sync-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.bb-auth-sync-spin {
    display: flex;
    color: #6576ff;
    font-size: 0.875rem;
    animation: bb-auth-spin 1.2s linear infinite;
}

.bb-auth-sync-text {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes bb-auth-spin {
    to { transform: rotate(360deg); }
}

/* Карты */
.bb-auth-widget--card {
    left: 12%;
    bottom: 16%;
    animation-delay: -8s;
}

/* Журнал */
.bb-auth-widget--audit {
    right: 14%;
    bottom: 18%;
    animation-delay: -5s;
}

.bb-auth-audit-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.15rem 0;
}

.bb-auth-audit-line--new {
    color: rgba(255, 255, 255, 0.75);
}

.bb-auth-audit-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.bb-auth-audit-line--new .bb-auth-audit-dot {
    background: #6576ff;
    box-shadow: 0 0 6px rgba(101, 118, 255, 0.8);
    animation: bb-auth-dot-blink 1s ease-in-out infinite;
}

@keyframes bb-auth-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Чипы-иконки */
.bb-auth-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: bb-auth-chip-float 6s ease-in-out infinite;
    z-index: 1;
}

.bb-auth-chip .icon {
    font-size: 0.75rem;
    color: #a8b4ff;
}

.bb-auth-chip--1 { top: 20%; left: 22%; animation-delay: 0s; }
.bb-auth-chip--2 { top: 5%; right: 28%; animation-delay: -1s; }
.bb-auth-chip--3 { top: 42%; left: 20%; animation-delay: -2s; }
.bb-auth-chip--4 { bottom: 32%; left: 28%; animation-delay: -3s; }
.bb-auth-chip--5 { bottom: 28%; right: 28%; animation-delay: -4s; }
.bb-auth-chip--6 { top: 38%; right: 22%; animation-delay: -5s; }

@keyframes bb-auth-chip-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-8px) scale(1.03); opacity: 1; }
}

/* Орбита иконок */
.bb-auth-orbit {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 58%;
    top: 72%;
    margin-left: -100px;
    margin-top: -100px;
    opacity: 0.35;
    animation: bb-auth-orbit-rotate 28s linear infinite;
}

.bb-auth-orbit-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(101, 118, 255, 0.2);
    border: 1px solid rgba(101, 118, 255, 0.3);
    border-radius: 50%;
    color: #a8b4ff;
    font-size: 0.8rem;
    transform: rotate(calc(var(--i) * 60deg)) translateY(-95px);
}

@keyframes bb-auth-orbit-rotate {
    to { transform: rotate(360deg); }
}

/* Бегущая строка */
.bb-auth-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    z-index: 1;
}

.bb-auth-ticker-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: bb-auth-ticker-scroll 35s linear infinite;
    padding-top: 6px;
}

.bb-auth-ticker-track span {
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

@keyframes bb-auth-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Сканирующая линия */
.bb-auth-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(101, 118, 255, 0.5), transparent);
    box-shadow: 0 0 20px rgba(101, 118, 255, 0.4);
    opacity: 0.4;
    animation: bb-auth-scan 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes bb-auth-scan {
    0%, 100% { top: -2px; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    50% { top: 100%; opacity: 0.35; }
}

/* Потоки данных (SVG) */
.bb-auth-streams {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}

.bb-auth-stream-svg {
    width: 100%;
    height: 100%;
}

.bb-auth-stream-path {
    fill: none;
    stroke: rgba(101, 118, 255, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 8 12;
    animation: bb-auth-stream-flow 6s linear infinite;
}

.bb-auth-stream-path--2 {
    stroke: rgba(30, 224, 172, 0.25);
    animation-duration: 8s;
    animation-direction: reverse;
}

.bb-auth-stream-path--3 {
    stroke: rgba(255, 255, 255, 0.15);
    animation-duration: 10s;
}

.bb-auth-stream-path--4 {
    stroke: rgba(244, 189, 14, 0.2);
    animation-duration: 7s;
}

.bb-auth-stream-path--5 {
    stroke: rgba(30, 224, 172, 0.2);
    animation-duration: 9s;
    animation-direction: reverse;
}

@keyframes bb-auth-stream-flow {
    to { stroke-dashoffset: -40; }
}

/* Точки по «потокам» */
.bb-auth-data-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6576ff;
    box-shadow: 0 0 8px rgba(101, 118, 255, 0.8);
    z-index: 1;
}

.bb-auth-data-dot--1 { animation: bb-auth-dot-move-1 6s ease-in-out infinite; }
.bb-auth-data-dot--2 { animation: bb-auth-dot-move-2 7s ease-in-out infinite; background: #1ee0ac; box-shadow: 0 0 8px rgba(30, 224, 172, 0.8); }
.bb-auth-data-dot--3 { animation: bb-auth-dot-move-3 5.5s ease-in-out infinite; }
.bb-auth-data-dot--4 { animation: bb-auth-dot-move-4 8s ease-in-out infinite; background: #f4bd0e; box-shadow: 0 0 8px rgba(244, 189, 14, 0.6); }
.bb-auth-data-dot--5 { animation: bb-auth-dot-move-5 6.5s ease-in-out infinite; }

@keyframes bb-auth-dot-move-1 {
    0%, 100% { left: 12%; top: 55%; opacity: 0; }
    15%, 85% { opacity: 1; }
    50% { left: 48%; top: 38%; }
}

@keyframes bb-auth-dot-move-2 {
    0%, 100% { left: 88%; top: 65%; opacity: 0; }
    20%, 80% { opacity: 1; }
    50% { left: 52%; top: 42%; }
}

@keyframes bb-auth-dot-move-3 {
    0%, 100% { left: 18%; top: 22%; opacity: 0; }
    25%, 75% { opacity: 1; }
    50% { left: 55%; top: 55%; }
}

@keyframes bb-auth-dot-move-4 {
    0%, 100% { left: 75%; top: 18%; opacity: 0; }
    30%, 70% { opacity: 1; }
    50% { left: 40%; top: 62%; }
}

@keyframes bb-auth-dot-move-5 {
    0%, 100% { left: 8%; top: 78%; opacity: 0; }
    20%, 80% { opacity: 1; }
    50% { left: 62%; top: 28%; }
}

/* Частицы */
.bb-auth-particles {
    position: absolute;
    inset: 0;
}

.bb-auth-particle {
    position: absolute;
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    animation: bb-auth-particle-rise 12s linear infinite;
    opacity: 0;
}

.bb-auth-particle:nth-child(1) { left: 8%; animation-delay: 0s; color: rgba(30, 224, 172, 0.35); }
.bb-auth-particle:nth-child(2) { left: 14%; animation-delay: 1.2s; }
.bb-auth-particle:nth-child(3) { left: 20%; animation-delay: 2.4s; color: rgba(101, 118, 255, 0.4); }
.bb-auth-particle:nth-child(4) { left: 26%; animation-delay: 3.6s; }
.bb-auth-particle:nth-child(5) { left: 32%; animation-delay: 4.8s; color: rgba(30, 224, 172, 0.3); }
.bb-auth-particle:nth-child(6) { left: 38%; animation-delay: 0.8s; }
.bb-auth-particle:nth-child(7) { left: 44%; animation-delay: 2s; color: rgba(101, 118, 255, 0.35); }
.bb-auth-particle:nth-child(8) { left: 50%; animation-delay: 3.2s; }
.bb-auth-particle:nth-child(9) { left: 56%; animation-delay: 4.4s; color: rgba(30, 224, 172, 0.35); }
.bb-auth-particle:nth-child(10) { left: 62%; animation-delay: 5.6s; }
.bb-auth-particle:nth-child(11) { left: 68%; animation-delay: 6.8s; color: rgba(101, 118, 255, 0.4); }
.bb-auth-particle:nth-child(12) { left: 74%; animation-delay: 1.6s; }
.bb-auth-particle:nth-child(13) { left: 80%; animation-delay: 2.8s; color: rgba(30, 224, 172, 0.3); }
.bb-auth-particle:nth-child(14) { left: 86%; animation-delay: 4s; }
.bb-auth-particle:nth-child(15) { left: 92%; animation-delay: 5.2s; color: rgba(101, 118, 255, 0.35); }
.bb-auth-particle:nth-child(16) { left: 18%; animation-delay: 7s; }

.bb-auth-particle {
    bottom: -5%;
}

@keyframes bb-auth-particle-rise {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    8% { opacity: 0.7; }
    85% { opacity: 0.25; }
    100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

/* Пульсы «транзакций» */
.bb-auth-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(101, 118, 255, 0.2);
    animation: bb-auth-pulse-ring 4s ease-out infinite;
    opacity: 0;
}

.bb-auth-pulse--1 {
    top: 18%;
    left: 12%;
}

.bb-auth-pulse--2 {
    bottom: 22%;
    right: 14%;
    border-color: rgba(30, 224, 172, 0.2);
    animation-delay: 2s;
}

.bb-auth-pulse--3 {
    top: 42%;
    left: 28%;
    width: 80px;
    height: 80px;
    animation-delay: 1s;
}

.bb-auth-pulse--4 {
    bottom: 38%;
    right: 32%;
    border-color: rgba(244, 189, 14, 0.2);
    width: 90px;
    height: 90px;
    animation-delay: 3s;
}

@keyframes bb-auth-pulse-ring {
    0% { transform: scale(0.5); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Центр — затемнение, чтобы форма читалась */
.bb-auth-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 42% 50% at 50% 48%, rgba(15, 15, 26, 0.82) 0%, transparent 72%);
    pointer-events: none;
}

/* Адаптив */
@media (max-width: 1199px) {
    .bb-auth-widget {
        transform: scale(0.88);
    }
    .bb-auth-widget--payout { left: 2%; }
    .bb-auth-widget--doc { right: 2%; }
}

@media (max-width: 991px) {
    .bb-auth-widget--form,
    .bb-auth-widget--notify,
    .bb-auth-widget--table,
    .bb-auth-widget--statement,
    .bb-auth-widget--card,
    .bb-auth-widget--audit,
    .bb-auth-widget--passport,
    .bb-auth-chip--3,
    .bb-auth-chip--4,
    .bb-auth-chip--5,
    .bb-auth-chip--6,
    .bb-auth-orbit {
        display: none;
    }
    .bb-auth-streams { opacity: 0.2; }
}

@media (max-width: 767px) {
    .bb-auth-widget--chart,
    .bb-auth-widget--insurance,
    .bb-auth-pulse,
    .bb-auth-streams,
    .bb-auth-ticker,
    .bb-auth-scanline,
    .bb-auth-data-dot,
    .bb-auth-chip {
        display: none;
    }
    .bb-auth-widget--payout {
        top: 8%;
        left: 3%;
        width: 160px;
        transform: scale(0.82);
    }
    .bb-auth-widget--doc {
        top: 8%;
        right: 3%;
        width: 155px;
        transform: scale(0.82);
    }
    .bb-auth-particles .bb-auth-particle:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 480px) {
    .bb-auth-widget--payout,
    .bb-auth-widget--doc {
        opacity: 0.55;
    }
}

/* --- Брендинг сверху --- */

.bb-auth-brand {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.5rem 0;
    text-align: center;
    pointer-events: none;
    animation: bb-auth-brand-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bb-auth-brand-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bb-auth-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    pointer-events: auto;
}

.bb-auth-brand-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(101, 118, 255, 0.45));
    opacity: 0.95;
}

.bb-auth-brand-wordmark {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    text-shadow:
        0 0 40px rgba(101, 118, 255, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.bb-auth-brand-accent {
    background: linear-gradient(135deg, #a8b4ff 0%, #6576ff 50%, #1ee0ac 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(101, 118, 255, 0.5));
}

.bb-auth-brand-tagline {
    margin: 0.65rem 0 0;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Скрываем дублирующий img, если wordmark достаточно — показываем оба: img мелкий, текст крупный */
.bb-auth-brand-link .bb-auth-brand-img {
    display: none;
}

.bb-auth-brand-link .bb-auth-brand-wordmark {
    display: block;
}

/* --- Карточка --- */

.bb-auth-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    animation: bb-auth-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bb-auth-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bb-auth-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bb-auth-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.bb-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.bb-auth-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

.bb-auth-card .alert {
    border-radius: 10px;
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.bb-auth-card .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 500;
}

.bb-auth-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.bb-auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.bb-auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(101, 118, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(101, 118, 255, 0.25);
    color: #fff;
}

.bb-auth-card .form-icon {
    color: rgba(255, 255, 255, 0.5);
}

.bb-auth-card .form-icon:hover {
    color: rgba(255, 255, 255, 0.85);
}

.bb-auth-card .form-group {
    margin-bottom: 1.25rem;
}

.bb-auth-submit {
    margin-top: 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #6576ff 0%, #4a5cd4 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(101, 118, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bb-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(101, 118, 255, 0.5);
    background: linear-gradient(135deg, #7583ff 0%, #6576ff 100%);
}

.bb-auth-submit:active {
    transform: translateY(0);
}

.bb-auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 575px) {
    .bb-auth {
        padding-top: 5rem;
    }

    .bb-auth-brand {
        padding-top: 1.25rem;
    }

    .bb-auth-brand-wordmark {
        font-size: 1.35rem;
        letter-spacing: 0.1em;
    }

    .bb-auth-brand-tagline {
        font-size: 0.625rem;
        letter-spacing: 0.12em;
    }

    .bb-auth-card {
        padding: 1.75rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-auth-bg::before,
    .bb-auth-orb,
    .bb-auth-grid,
    .bb-auth-shine,
    .bb-auth-brand,
    .bb-auth-panel,
    .bb-auth-widget,
    .bb-auth-progress-bar,
    .bb-auth-doc-lines span,
    .bb-auth-type::after,
    .bb-auth-fill-bar i,
    .bb-auth-row,
    .bb-auth-bars span,
    .bb-auth-stream-path,
    .bb-auth-particle,
    .bb-auth-pulse,
    .bb-auth-chip,
    .bb-auth-orbit,
    .bb-auth-orbit-item,
    .bb-auth-ticker-track,
    .bb-auth-scanline,
    .bb-auth-data-dot,
    .bb-auth-sync-spin,
    .bb-auth-passport-line::after,
    .bb-auth-passport-step--on,
    .bb-auth-audit-line--new .bb-auth-audit-dot {
        animation: none;
    }
}

