body {
    font-family: 'Manrope', sans-serif;
}

/* ── Фон страницы ─────────────────────────────────────────────── */
.page-bg {
    background: linear-gradient(155deg, #e2effd 0%, #d8eaff 30%, #e0e8ff 65%, #edf1ff 100%);
}

/* ── Декоративные блобы ───────────────────────────────────────── */
.deco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.deco-blob-1 {
    width: 420px; height: 420px;
    top: -100px; left: -120px;
    background: radial-gradient(circle, rgba(80, 170, 255, 0.3), rgba(50, 120, 240, 0.12));
    opacity: 0.6;
}
.deco-blob-2 {
    width: 340px; height: 340px;
    bottom: -80px; right: -90px;
    background: radial-gradient(circle, rgba(110, 140, 255, 0.28), rgba(70, 90, 220, 0.1));
    opacity: 0.55;
}
.deco-blob-3 {
    width: 180px; height: 180px;
    top: 38%; right: 8%;
    background: radial-gradient(circle, rgba(140, 200, 255, 0.22), transparent);
    opacity: 0.5;
}

/* ── Градиент названия — тёмный → светлый, как в логотипе ─────── */
.wordmark {
    background: linear-gradient(90deg, #0e1f5c 0%, #1264c8 45%, #1fc8f8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: -0.03em;
}

/* ── Мини-счётчик рядом с логотипом ─────────────────────────── */
.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.hero-counter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.55rem 0.8rem 0.55rem 0.95rem;
}

.hero-counter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(14, 31, 92, 0.18), transparent);
}

.hero-counter-number {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(90deg, #1fc8f8 0%, #1264c8 50%, #0e1f5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-counter-label {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.9);
}

@keyframes ping {
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ── Карточка авторизации ─────────────────────────────────────── */
.auth-card {
    position: relative;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 10% 0%, rgba(31, 200, 248, 0.08), transparent 36%);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 28px 70px rgba(20, 78, 160, 0.16),
        0 10px 24px rgba(14, 31, 92, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(31, 200, 248, 0.28), rgba(255, 255, 255, 0.5), rgba(14, 31, 92, 0.08));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-tabs {
    border-radius: 18px;
    background: rgba(229, 237, 248, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 2px rgba(14, 31, 92, 0.05);
}

.auth-tab {
    border-radius: 14px;
    color: #64748b;
}

.auth-tab.is-active {
    color: #10215b;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(14, 31, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.auth-card input {
    border-color: rgba(148, 163, 184, 0.55) !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: inset 0 1px 2px rgba(14, 31, 92, 0.035);
}

.auth-card input:focus {
    border-color: rgba(27, 144, 245, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(31, 200, 248, 0.12), inset 0 1px 2px rgba(14, 31, 92, 0.035) !important;
}

/* ── Кнопка ───────────────────────────────────────────────────── */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0.95rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 46%),
        linear-gradient(100deg, #31acef 0%, #1f7ce3 52%, #2550df 100%);
    box-shadow:
        0 12px 24px rgba(28, 100, 220, 0.2),
        0 4px 10px rgba(14, 31, 92, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: box-shadow 180ms ease, transform 180ms ease;
    cursor: pointer;
    border: none;
    overflow: hidden;
}
.btn-primary:hover {
    box-shadow:
        0 16px 30px rgba(28, 100, 220, 0.24),
        0 4px 10px rgba(14, 31, 92, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.26);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
    z-index: 0;
}
.btn-text, .btn-divider, .btn-arrow { position: relative; z-index: 1; }

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    transition: left 380ms ease;
    pointer-events: none;
}
.btn-primary:hover::before { left: 160%; }

.btn-text {
    flex: 1;
    padding: 0.82rem 1.2rem;
    text-align: center;
}
.btn-divider {
    width: 1px;
    height: 1.6rem;
    background: rgba(255,255,255,0.22);
    flex-shrink: 0;
}
.btn-arrow {
    width: 1.1rem; height: 1.1rem;
    margin: 0 0.9rem;
    flex-shrink: 0;
    transition: transform 180ms ease;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

@media (max-width: 640px) {
    .hero-brand {
        gap: 0.75rem;
    }

    .hero-counter-number {
        font-size: 1.65rem;
    }

    .hero-counter-label {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }
}

/* ── Плашка с преимуществами ──────────────────────────────────── */
.benefit-bar {
    display: flex;
    align-items: stretch;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(96, 184, 255, 0.2);
    box-shadow: 0 2px 12px rgba(40, 100, 220, 0.06);
    overflow: hidden;
}
.benefit-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
}
.benefit-sep {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(96, 184, 255, 0.3) 30%, rgba(96, 184, 255, 0.3) 70%, transparent);
    flex-shrink: 0;
}
.benefit-icon {
    width: 2rem; height: 2rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, rgba(56, 178, 246, 0.15), rgba(36, 72, 214, 0.1));
    border: 1px solid rgba(96, 184, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    color: #2b8ee8;
    flex-shrink: 0;
    margin-top: 1px;
}
.benefit-icon-gift {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(99, 102, 241, 0.1));
    border-color: rgba(168, 85, 247, 0.2);
    color: #7c3aed;
}
.benefit-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.benefit-desc {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.4;
    margin-top: 0.15rem;
}

/* ── Инпут с кодом (страница verify) ─────────────────────────── */
.auth-code-input {
    letter-spacing: 0.45em;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}