body.login-ip-gate-active {
    overflow: hidden;
}

.login-ip-gate-screen,
.login-ip-gate-preview-backdrop {
    overflow: hidden;
    background:
        radial-gradient(ellipse 72% 58% at 4% 96%, rgba(110, 58, 104, 0.16), transparent 58%),
        radial-gradient(ellipse 64% 52% at 96% 6%, rgba(200, 160, 196, 0.38), transparent 54%),
        radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.72), transparent 68%),
        linear-gradient(148deg, #fcf8fb 0%, #f7f0f5 30%, #ede3ea 62%, #e8dce6 100%);
}

.login-ip-gate-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(18px);
}

.login-ip-gate-screen::before,
.login-ip-gate-preview-backdrop::before {
    content: '';
    position: absolute;
    inset: -25%;
    pointer-events: none;
    background: repeating-linear-gradient(
        -26deg,
        transparent 0,
        transparent 108px,
        rgba(62, 36, 58, 0.07) 108px,
        rgba(62, 36, 58, 0.07) 114px,
        transparent 114px,
        transparent 178px,
        rgba(255, 255, 255, 0.62) 178px,
        rgba(255, 255, 255, 0.62) 180px,
        transparent 180px,
        transparent 248px,
        rgba(148, 163, 184, 0.22) 248px,
        rgba(148, 163, 184, 0.22) 250px
    );
    opacity: 0.8;
}

.login-ip-gate-screen::after,
.login-ip-gate-preview-backdrop::after {
    content: '';
    position: absolute;
    top: 14%;
    left: -10%;
    width: 72%;
    height: 4px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 160, 196, 0.9) 14%,
        rgba(255, 255, 255, 0.98) 48%,
        rgba(110, 58, 104, 0.5) 84%,
        transparent
    );
    transform: rotate(-11deg);
    box-shadow:
        0 128px 0 -1px rgba(148, 163, 184, 0.38),
        0 256px 0 0 rgba(62, 36, 58, 0.11),
        0 384px 0 -2px rgba(255, 255, 255, 0.78),
        0 512px 0 1px rgba(232, 212, 228, 0.65);
    opacity: 0.9;
}

.login-ip-gate-screen[hidden] {
    display: none !important;
}

.login-ip-gate-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.94) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 1px, transparent 1px),
        linear-gradient(rgba(200, 160, 196, 0.58) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 160, 196, 0.58) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.34) 1px, transparent 1px),
        linear-gradient(rgba(110, 58, 104, 0.16) 3px, transparent 3px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.78) 4px, transparent 4px),
        linear-gradient(90deg, rgba(62, 36, 58, 0.1) 2px, transparent 2px),
        repeating-linear-gradient(
            56deg,
            transparent 0,
            transparent 68px,
            rgba(232, 212, 228, 0.5) 68px,
            rgba(232, 212, 228, 0.5) 72px,
            transparent 72px,
            transparent 136px,
            rgba(62, 36, 58, 0.08) 136px,
            rgba(62, 36, 58, 0.08) 140px
        ),
        repeating-linear-gradient(
            -34deg,
            transparent 0,
            transparent 88px,
            rgba(148, 163, 184, 0.24) 88px,
            rgba(148, 163, 184, 0.24) 91px,
            transparent 91px,
            transparent 168px,
            rgba(255, 255, 255, 0.55) 168px,
            rgba(255, 255, 255, 0.55) 170px
        );
    background-size:
        26px 26px,
        26px 26px,
        40px 40px,
        40px 40px,
        54px 54px,
        54px 54px,
        100% 84px,
        104px 100%,
        168px 100%,
        100% 100%,
        100% 100%;
    background-position:
        0 0,
        0 0,
        13px 13px,
        13px 13px,
        0 0,
        0 0,
        0 0,
        0 0,
        42px 0,
        0 0,
        0 0;
}

.login-ip-gate-lines::before {
    content: '';
    position: absolute;
    width: min(44vw, 440px);
    height: min(44vw, 440px);
    top: -14%;
    right: -10%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        inset 0 0 0 20px rgba(200, 160, 196, 0.24),
        inset 0 0 0 21px rgba(255, 255, 255, 0.55),
        0 0 0 4px rgba(110, 58, 104, 0.14),
        0 0 0 8px rgba(148, 163, 184, 0.12),
        0 0 90px rgba(200, 160, 196, 0.28);
}

.login-ip-gate-lines::after {
    content: '';
    position: absolute;
    width: min(36vw, 340px);
    height: min(36vw, 340px);
    bottom: -12%;
    left: -8%;
    border-radius: 1.5rem;
    transform: rotate(16deg);
    border: 5px solid rgba(62, 36, 58, 0.15);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        10px 10px 0 1px rgba(148, 163, 184, 0.28),
        -4px -4px 0 0 rgba(200, 160, 196, 0.55),
        0 0 0 12px rgba(255, 255, 255, 0.18);
}

.login-ip-gate-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 26rem);
    padding: 2rem 1.75rem;
    text-align: center;
    color: #fff;
    border-radius: 1.15rem;
    background: linear-gradient(160deg, rgba(80, 45, 75, 0.94), rgba(62, 36, 58, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 24px 50px rgba(62, 36, 58, 0.35);
    overflow: hidden;
}

.login-ip-gate-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.login-ip-gate-panel::after {
    content: '';
    position: absolute;
    inset: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    pointer-events: none;
}

.login-ip-gate-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(200, 160, 196, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.45);
    animation: login-ip-gate-pulse 2.2s ease-in-out infinite;
}

.login-ip-gate-icon svg {
    width: 1.6rem;
    height: 1.6rem;
    color: #ffffff;
}

.login-ip-gate-panel .login-ip-gate-title,
.login-ip-gate-screen .login-ip-gate-title,
.login-ip-gate-preview-backdrop .login-ip-gate-title {
    margin: 0 0 0.5rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}

.login-ip-gate-lead {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #f3ebf1;
}

.login-ip-gate-status {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    color: #faf5f8;
}

.login-ip-gate-position {
    margin: 0 0 1.1rem;
    font-size: 0.84rem;
    color: #f3ebf1;
}

.login-ip-gate-progress {
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.login-ip-gate-progress-bar {
    display: block;
    height: 100%;
    width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, #905088, #c8a0c4, #ffffff);
    transition: width 0.6s ease;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.login-ip-gate-shields {
    margin-top: 1.15rem;
    padding: 0.85rem 0.95rem;
    text-align: left;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-ip-gate-shields-title {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f3ebf1;
}

.login-ip-gate-shields-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-ip-gate-shield {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.login-ip-gate-shield.is-passed {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.38);
}

.login-ip-gate-shield.is-failed {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(252, 165, 165, 0.45);
}

.login-ip-gate-shield-icon {
    position: relative;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    color: #e8dce6;
}

.login-ip-gate-shield-icon svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.login-ip-gate-shield-icon-pending {
    opacity: 1;
    animation: login-ip-gate-shield-spin 1.2s linear infinite;
}

.login-ip-gate-shield-icon-pass,
.login-ip-gate-shield-icon-fail {
    opacity: 0;
}

.login-ip-gate-shield.is-passed .login-ip-gate-shield-icon {
    color: #ffffff;
}

.login-ip-gate-shield.is-passed .login-ip-gate-shield-icon-pending,
.login-ip-gate-shield.is-passed .login-ip-gate-shield-icon-fail {
    opacity: 0;
}

.login-ip-gate-shield.is-passed .login-ip-gate-shield-icon-pass {
    opacity: 1;
}

.login-ip-gate-shield.is-failed .login-ip-gate-shield-icon {
    color: #fecaca;
}

.login-ip-gate-shield.is-failed .login-ip-gate-shield-icon-pending,
.login-ip-gate-shield.is-failed .login-ip-gate-shield-icon-pass {
    opacity: 0;
}

.login-ip-gate-shield.is-failed .login-ip-gate-shield-icon-fail {
    opacity: 1;
}

.login-ip-gate-shield.is-active .login-ip-gate-shield-icon-pending {
    opacity: 1;
}

.login-ip-gate-shield-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.login-ip-gate-shield-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.login-ip-gate-shield-state {
    font-size: 0.72rem;
    color: #e8dce6;
}

.login-ip-gate-shield.is-passed .login-ip-gate-shield-state {
    color: #faf5f8;
    font-weight: 600;
}

.login-ip-gate-shield.is-failed .login-ip-gate-shield-state {
    color: #fecaca;
}

@keyframes login-ip-gate-shield-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-ip-gate-human {
    margin-top: 1.1rem;
    text-align: left;
}

.login-ip-gate-human[hidden] {
    display: none !important;
}

.login-ip-gate-human-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ffffff;
}

.login-ip-gate-human-label input {
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    accent-color: #c8a0c4;
    flex-shrink: 0;
}

.login-ip-gate-footer {
    margin: 1.15rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    line-height: 1.4;
    color: #e8dce6;
}

.login-ip-gate-footer-brand {
    color: #ffffff;
    font-weight: 600;
}

.login-ip-gate-footer-sep {
    margin: 0 0.35rem;
    opacity: 0.65;
}

.login-ip-gate-footer-trace {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.04em;
    color: #faf5f8;
}

.login-ip-gate-panel.is-approved {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 36px rgba(255, 255, 255, 0.2),
        0 24px 50px rgba(62, 36, 58, 0.35);
}

@keyframes login-ip-gate-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.92; }
}
