:root {
    color-scheme: dark;
    --bg: #020712;
    --panel: rgba(7, 17, 36, .92);
    --line: rgba(112, 190, 255, .2);
    --line-strong: rgba(112, 190, 255, .42);
    --text: #eaf6ff;
    --muted: #7893ab;
    --blue: #18a8ff;
    --blue-bright: #70d4ff;
    --cyan: #38e1e8;
    --warning: #f7c978;
    --error: #ff879a;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -12%, rgba(13, 123, 208, .22), transparent 38%),
        radial-gradient(circle at 10% 90%, rgba(18, 92, 173, .12), transparent 35%),
        linear-gradient(155deg, #020712 0%, #040b18 48%, #020610 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: .45;
    background-image:
        linear-gradient(rgba(88, 175, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 175, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 76% 68% at 50% 46%, #000 12%, transparent 78%);
}

button,
input {
    font: inherit;
}

.protection-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 36px 20px;
}

.protection-card {
    position: relative;
    width: min(100%, 460px);
    overflow: hidden;
    padding: clamp(36px, 7vw, 56px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(9, 23, 46, .94), rgba(4, 13, 29, .97));
    box-shadow: 0 36px 110px rgba(0, 0, 0, .5), 0 0 80px rgba(6, 108, 190, .08);
    backdrop-filter: blur(26px);
}

.protection-card::before {
    position: absolute;
    top: -110px;
    right: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    content: "";
    background: rgba(34, 167, 255, .12);
    filter: blur(58px);
    pointer-events: none;
}

.protection-logo {
    position: relative;
    display: block;
    width: min(100%, 265px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(0, 156, 255, .2));
}

.protection-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 30px;
}

.protection-divider::before,
.protection-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(112, 190, 255, .22));
}

.protection-divider::after {
    background: linear-gradient(90deg, rgba(112, 190, 255, .22), transparent);
}

.protection-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(56, 225, 232, .8);
}

h1 {
    margin: 0;
    text-align: center;
    color: var(--text);
    font-size: clamp(25px, 6vw, 31px);
    font-weight: 630;
    letter-spacing: -.035em;
}

.protection-copy {
    margin: 14px 0 32px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 9px;
    color: #829db4;
    font-size: 10px;
    font-weight: 720;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.protection-input-wrap {
    position: relative;
}

.protection-input-wrap svg {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 18px;
    height: 18px;
    color: #178bd0;
    transform: translateY(-50%);
    pointer-events: none;
}

.protection-input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 17px 0 50px;
    border: 1px solid rgba(36, 136, 204, .35);
    border-radius: 12px;
    outline: none;
    color: var(--blue-bright);
    background: rgba(1, 43, 91, .32);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.protection-input-wrap input::placeholder {
    color: rgba(112, 190, 255, .38);
}

.protection-input-wrap input:focus {
    border-color: rgba(50, 185, 255, .62);
    background: rgba(1, 51, 114, .45);
    box-shadow: 0 0 0 4px rgba(24, 168, 255, .08);
}

.protection-submit {
    width: 100%;
    height: 56px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid rgba(38, 173, 246, .45);
    border-radius: 12px;
    color: #9bdbff;
    background: linear-gradient(135deg, rgba(1, 83, 154, .5), rgba(1, 51, 114, .42));
    cursor: pointer;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.protection-submit svg {
    width: 17px;
    height: 17px;
    transition: transform .2s ease;
}

.protection-submit:hover {
    color: #c9eeff;
    border-color: rgba(56, 202, 255, .7);
    background: linear-gradient(135deg, rgba(3, 109, 193, .6), rgba(1, 62, 132, .5));
    transform: translateY(-1px);
}

.protection-submit:hover svg {
    transform: translateX(3px);
}

.protection-submit:focus-visible,
.sl-dialog-button:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

.protection-submit:disabled {
    cursor: wait;
    opacity: .55;
}

.protection-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    color: #607c95;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.protection-note span {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #43d5d9;
    box-shadow: 0 0 10px rgba(67, 213, 217, .65);
}

.sl-loader,
.sl-dialog-layer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 4, 12, .74);
    backdrop-filter: blur(8px);
}

.sl-loader {
    z-index: 1100;
}

.sl-loader-spinner {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 15, 32, .95);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 42px rgba(24, 168, 255, .12);
}

.sl-loader-spinner span {
    width: 7px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    animation: sl-wave .85s ease-in-out infinite;
}

.sl-loader-spinner span:nth-child(2) { animation-delay: .12s; }
.sl-loader-spinner span:nth-child(3) { animation-delay: .24s; }

@keyframes sl-wave {
    0%, 100% { height: 14px; opacity: .45; }
    50% { height: 31px; opacity: 1; }
}

.sl-is-loading,
.sl-has-dialog {
    overflow: hidden;
}

.sl-dialog {
    width: min(100%, 470px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 20px;
    padding: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(10, 25, 48, .99), rgba(4, 12, 27, .99));
    box-shadow: 0 34px 100px rgba(0, 0, 0, .58), 0 0 65px rgba(8, 120, 200, .12);
}

.sl-dialog-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(112, 190, 255, .28);
    border-radius: 15px;
    color: var(--blue-bright);
    background: rgba(24, 168, 255, .08);
}

.sl-dialog-icon svg {
    display: none;
    width: 27px;
    height: 27px;
    stroke-width: 1.6;
}

.sl-dialog[data-type="message"] .sl-icon-message,
.sl-dialog[data-type="warning"] .sl-icon-warning,
.sl-dialog[data-type="error"] .sl-icon-error,
.sl-dialog[data-type="question"] .sl-icon-question {
    display: block;
}

.sl-dialog[data-type="warning"] .sl-dialog-icon {
    color: var(--warning);
    border-color: rgba(247, 201, 120, .3);
    background: rgba(247, 201, 120, .08);
}

.sl-dialog[data-type="error"] .sl-dialog-icon {
    color: var(--error);
    border-color: rgba(255, 135, 154, .3);
    background: rgba(255, 135, 154, .08);
}

.sl-dialog[data-type="question"] .sl-dialog-icon {
    color: var(--cyan);
    border-color: rgba(56, 225, 232, .3);
    background: rgba(56, 225, 232, .08);
}

.sl-dialog-kicker {
    margin: 0 0 5px;
    color: #66849d;
    font-size: 9px;
    font-weight: 740;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sl-dialog h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 630;
    letter-spacing: -.02em;
}

.sl-dialog-content > p:last-child {
    margin: 11px 0 0;
    color: #8aa5bb;
    font-size: 13px;
    line-height: 1.62;
}

.sl-dialog-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 27px;
}

.sl-dialog-button {
    min-width: 110px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #91abc0;
    background: rgba(17, 39, 69, .45);
    cursor: pointer;
    font-size: 10px;
    font-weight: 740;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sl-dialog-button--primary {
    color: #a7dfff;
    border-color: rgba(38, 173, 246, .45);
    background: rgba(2, 83, 154, .48);
}

.sl-dialog-button:hover {
    color: #d9f2ff;
    border-color: rgba(74, 190, 255, .55);
}

@media (max-width: 520px) {
    .protection-card {
        padding: 34px 24px;
        border-radius: 20px;
    }

    .sl-dialog {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .sl-dialog-icon {
        margin-bottom: 18px;
    }

    .sl-dialog-actions {
        flex-direction: column-reverse;
    }

    .sl-dialog-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

