.opos-auth-page {
    background: #080b0a;
}

.opos-auth-page .site-header {
    background: rgba(8, 11, 10, 0.94);
    border-bottom: 1px solid rgba(99, 255, 169, 0.18);
    color: #f5f7ee;
    padding: 14px 22px;
}

.opos-auth-page .site-title {
    color: #f5f7ee;
}

.opos-auth-page .site-nav a {
    color: #80ffc2;
}

.opos-auth-page .site-main {
    max-width: none;
    padding: 0;
}

.opos-auth {
    background:
        linear-gradient(135deg, #080b0a 0%, #101211 46%, #21190d 100%);
    color: #f5f7ee;
    isolation: isolate;
    margin: 0;
    min-height: calc(100vh - 66px);
    overflow: hidden;
    padding: 48px 18px;
    position: relative;
}

.opos-auth::before {
    background:
        linear-gradient(90deg, rgba(66, 255, 166, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 226, 122, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
    opacity: 0.7;
    position: absolute;
    z-index: -2;
}

.opos-auth::after {
    animation: opos-scan 5s linear infinite;
    background: linear-gradient(180deg, transparent, rgba(72, 255, 172, 0.16), transparent);
    content: "";
    height: 140px;
    inset: -140px 0 auto;
    position: absolute;
    z-index: -1;
}

.opos-auth__matrix {
    color: rgba(99, 255, 169, 0.18);
    display: grid;
    font-family: "Courier New", monospace;
    font-size: 22px;
    gap: 42px;
    grid-template-columns: repeat(8, max-content);
    inset: 22px auto auto 28px;
    letter-spacing: 2px;
    position: absolute;
    transform: rotate(-9deg);
    user-select: none;
    white-space: nowrap;
    z-index: -1;
}

.opos-auth__matrix span {
    animation: opos-rain 6s linear infinite;
}

.opos-auth__matrix span:nth-child(2n) {
    animation-duration: 8s;
    color: rgba(255, 218, 89, 0.18);
}

.opos-auth__matrix span:nth-child(3n) {
    animation-duration: 10s;
    color: rgba(123, 210, 255, 0.16);
}

.opos-auth__shell {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 430px);
    margin: 0 auto;
    max-width: 1040px;
    min-height: 560px;
}

.opos-auth__scene {
    min-height: 420px;
    position: relative;
}

.opos-auth__gate {
    aspect-ratio: 1;
    border: 1px solid rgba(105, 255, 177, 0.36);
    border-radius: 50%;
    box-shadow:
        inset 0 0 38px rgba(98, 255, 170, 0.14),
        0 0 48px rgba(98, 255, 170, 0.14);
    left: 50%;
    max-width: 390px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(76vw, 390px);
}

.opos-auth__gate span {
    border: 1px solid rgba(123, 210, 255, 0.24);
    border-radius: 50%;
    inset: 34px;
    position: absolute;
}

.opos-auth__gate span:nth-child(2) {
    border-color: rgba(255, 215, 102, 0.28);
    inset: 74px;
}

.opos-auth__gate span:nth-child(3) {
    border-color: rgba(255, 255, 255, 0.14);
    inset: 118px;
}

.opos-auth__saber {
    background: linear-gradient(90deg, transparent, #f8ffdf 12%, #55ffb3 50%, #ffd45c 88%, transparent);
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(84, 255, 178, 0.78), 0 0 58px rgba(255, 212, 92, 0.32);
    height: 8px;
    left: 8%;
    position: absolute;
    right: 8%;
    top: 58%;
    transform: rotate(-17deg);
}

.opos-auth__console {
    background: rgba(8, 12, 10, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.14);
    bottom: 18px;
    color: #efffed;
    display: flex;
    font-family: "Courier New", monospace;
    justify-content: space-between;
    left: 50%;
    max-width: 360px;
    padding: 12px 14px;
    position: absolute;
    transform: translateX(-50%);
    width: min(86vw, 360px);
}

.opos-auth__console i {
    color: #58ffad;
    font-style: normal;
}

.opos-auth__box {
    background: rgba(16, 19, 18, 0.9);
    border: 1px solid rgba(136, 255, 191, 0.2);
    border-radius: 8px;
    box-shadow:
        0 26px 90px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f5f7ee;
    padding: 28px;
}

.opos-auth__eyebrow {
    color: #80ffc2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.opos-auth h1 {
    font-size: 42px;
    line-height: 1.02;
    margin: 0 0 12px;
}

.opos-auth__copy,
.opos-auth__muted {
    color: #cfd8d2;
    font-size: 16px;
    margin: 0 0 22px;
}

.opos-auth__notice {
    background: #fff4df;
    border: 1px solid #f4bf61;
    color: #5f3800;
    margin: 0 auto 18px;
    max-width: 1040px;
    padding: 12px;
}

.opos-auth__google {
    align-items: center;
    background: #f4f0df;
    border: 1px solid rgba(244, 240, 223, 0.8);
    border-radius: 7px;
    box-shadow: 0 0 24px rgba(98, 255, 170, 0.12);
    color: #111;
    display: inline-flex;
    font-weight: 800;
    gap: 12px;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    text-decoration: none;
    width: 100%;
}

.opos-auth__google:hover {
    background: #80ffc2;
    border-color: #80ffc2;
    color: #08100c;
    text-decoration: none;
}

.opos-auth__google span {
    align-items: center;
    background: #111;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

@keyframes opos-scan {
    to {
        transform: translateY(calc(100vh + 280px));
    }
}

@keyframes opos-rain {
    from {
        transform: translateY(-24px);
    }

    to {
        transform: translateY(180px);
    }
}

@media (max-width: 820px) {
    .opos-auth {
        padding: 28px 14px;
    }

    .opos-auth__shell {
        gap: 10px;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .opos-auth__scene {
        min-height: 260px;
    }

    .opos-auth__console {
        bottom: 0;
    }

    .opos-auth__box {
        padding: 22px;
    }

    .opos-auth h1 {
        font-size: 34px;
    }
}
