input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #0B1016 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

html[data-theme="light"] .page-auth input:-webkit-autofill,
html[data-theme="light"] .page-auth input:-webkit-autofill:hover,
html[data-theme="light"] .page-auth input:-webkit-autofill:focus,
html[data-theme="light"] .page-auth input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #222222 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse-glow {
    0%, 100% {
        /* Исходная позиция */
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    25% {
        /* Слегка сдвигается вправо и вверх */
        transform: translate(-48%, -52%) scale(1.12);
        opacity: 0.85;
    }
    50% {
        /* Максимальное расширение, сдвиг влево и вниз */
        transform: translate(-52%, -48%) scale(1.25);
        opacity: 0.7;
    }
    75% {
        /* Возвращается, немного смещаясь влево и вверх */
        transform: translate(-51%, -51%) scale(1.12);
        opacity: 0.85;
    }
}

.glow-bg {
    position: absolute;
    width: 700px;
    height: 700px;
    left: 50%;
    top: 50%;
    /* translate здесь задает начальную точку, но анимация ее переопределит */
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(94, 37, 234, 0.12) 0%, rgba(11, 16, 22, 0) 70%);
    z-index: 0;
    pointer-events: none;

    /* Сделали анимацию чуть длиннее (10s), чтобы движение было более гипнотическим и плавным */
    animation: pulse-glow 10s ease-in-out infinite;
}

@media (max-width: 767px) {
    .page-auth main {
        padding: 20px 16px 28px;
        align-items: flex-start;
    }

    .page-auth .auth-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .page-auth main h1 {
        font-size: 22px;
        overflow-wrap: anywhere;
    }

    .page-auth main .flex.justify-between {
        gap: 8px;
        flex-wrap: wrap;
    }

    .page-auth main .mb-5.flex.items-center {
        align-items: flex-start;
    }

    .page-auth main .flex.py-2 span {
        white-space: nowrap;
        font-size: 11px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .page-auth main .grid.grid-cols-2 {
        gap: 10px;
    }

    .page-auth main button[type="submit"] {
        min-height: 48px;
        white-space: normal;
        line-height: 1.3;
    }

    .page-auth .glow-bg {
        width: 420px;
        height: 420px;
    }

    .page-auth footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}