:root {
    --bg: radial-gradient(circle at top left, #3e1b55 0%, #241032 40%, #120819 100%);
    --card: rgba(10, 6, 22, 0.85);
    --border: rgba(214, 154, 255, 0.38);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(227, 190, 255, 0.78);
    --shadow: rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    gap: 10px;
}

.centerWrap {
    position: relative;
    width: min(460px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card {
    width: min(460px, 92vw);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px var(--shadow);
    padding: 16px 16px 14px;
    overflow: hidden;
}

.logoWrap {
    display: grid;
    place-items: center;
    padding: 0;
    width: 100%;
}

.logo {
    height: 45px;
    width: auto;
    image-rendering: pixelated;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.form {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 380px;
}

.input {
    height: 38px;
    padding: 0 10px;
    border: 2px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    outline: none;
    font-size: 16px;
    width: 100%;
    min-width: 0;
}

.input.isError {
    border-color: rgba(255, 70, 70, 0.95);
    box-shadow: 0 0 16px rgba(255, 70, 70, 0.18);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.captcha {
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 380px;
}

.captchaImage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.captchaImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) contrast(0.98);
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.captchaTarget {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.captchaMover {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    backdrop-filter: blur(2px);
    background-repeat: no-repeat;
}

.sliderTitle {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.4px;
}

.arrow {
    opacity: 0.9;
}

.slider {
    position: relative;
    height: 42px;
    border: 2px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    user-select: none;
}

.slider.isBad {
    border-color: rgba(255, 70, 70, 0.85);
    box-shadow: 0 0 18px rgba(255, 70, 70, 0.25);
}

.slider.isGood {
    border-color: rgba(80, 255, 160, 0.9);
    box-shadow: 0 0 18px rgba(80, 255, 160, 0.22);
}

.sliderTrack {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.12);
}

.sliderHint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.sliderThumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 56px;
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.10);
    display: grid;
    place-items: center;
    cursor: grab;
}

.sliderThumb:active {
    cursor: grabbing;
}

.thumbArrow {
    color: rgba(255, 255, 255, 0.8);
}

.sliderStatus {
    min-height: 14px;
}

.btn {
    height: 44px;
    border: 2px solid var(--border);
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 380px;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.forgot {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
}

.forgot:hover {
    color: rgba(255, 255, 255, 0.7);
}

.square {
    position: absolute;
    top: -60px;
    width: var(--s);
    height: var(--s);
    background: linear-gradient(135deg,
            rgba(255, 105, 180, var(--a)),
            rgba(186, 85, 211, var(--a)));
    left: var(--x);
    animation: fall var(--d) linear infinite;
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.6);
}

@keyframes fall {
    0% {
        transform: translateY(-80px);
    }

    100% {
        transform: translateY(calc(100vh + 120px));
    }
}

@media (max-width: 520px) {
    .row {
        grid-template-columns: 1fr;
    }
}