:root {
    --ops-bg: #061424;
    --ops-bg-deep: #04101d;
    --ops-line: rgba(110, 159, 214, 0.055);
    --ops-text: #f4f8ff;
    --ops-muted: #778aa4;
    --ops-blue: #3278f6;
    --ops-cyan: #48d7dd;
    --ops-card-text: #162237;
    --ops-card-muted: #8795aa;
    --ops-card-border: #e2e8f1;
}

* {
    box-sizing: border-box;
}

html,
body.ops-login-page {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body.ops-login-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ops-text);
    background:
        linear-gradient(var(--ops-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ops-line) 1px, transparent 1px),
        linear-gradient(120deg, #0a1a32 0%, var(--ops-bg) 48%, var(--ops-bg-deep) 100%);
    background-size: 80px 80px, 80px 80px, auto;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ops-background,
.ops-glow {
    position: fixed;
    pointer-events: none;
}

.ops-background {
    inset: 0;
    overflow: hidden;
}

.ops-glow {
    display: block;
    border-radius: 50%;
    filter: blur(2px);
}

.ops-glow-left {
    top: -280px;
    left: 8%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(39, 103, 218, 0.19), transparent 68%);
}

.ops-glow-right {
    right: -260px;
    bottom: -360px;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(68, 197, 225, 0.06);
    box-shadow: 0 0 0 100px rgba(42, 122, 173, 0.015), 0 0 0 210px rgba(42, 122, 173, 0.012);
}

.ops-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1420px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
}

.ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
}

.ops-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ops-brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(142, 184, 241, 0.18);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(76, 130, 203, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ops-brand-mark i {
    position: absolute;
    width: 19px;
    height: 11px;
    border-radius: 8px;
    transform: rotate(45deg);
}

.ops-brand-mark i:first-child {
    top: 13px;
    left: 10px;
    z-index: 2;
    background: #f7fbff;
}

.ops-brand-mark i:last-child {
    right: 9px;
    bottom: 12px;
    background: linear-gradient(90deg, #56dce2, #2f91f2);
}

.ops-system-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #7f92aa;
    border: 1px solid rgba(133, 168, 215, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
}

.ops-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49e38b;
    box-shadow: 0 0 10px rgba(73, 227, 139, 0.9);
}

.ops-main {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
    align-items: center;
    gap: clamp(70px, 9vw, 160px);
    flex: 1;
    padding: 56px 76px 72px;
}

.ops-hero {
    max-width: 690px;
}

.ops-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    padding: 9px 15px;
    color: #86a0bd;
    border: 1px solid rgba(61, 183, 213, 0.18);
    border-radius: 999px;
    background: rgba(23, 83, 126, 0.12);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.ops-eyebrow i {
    color: var(--ops-cyan);
}

.ops-hero h1 {
    margin: 0;
    color: #f7faff;
    font-size: clamp(52px, 4.35vw, 72px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.ops-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #6ca1ff 0%, #5edee0 92%);
    -webkit-background-clip: text;
    background-clip: text;
}

.ops-hero-copy {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--ops-muted);
    font-size: 15px;
    line-height: 1.9;
}

.ops-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 52px;
}

.ops-feature-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    padding: 15px 14px;
    border: 1px solid rgba(125, 164, 212, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.ops-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    color: #77a6ff;
    border-radius: 10px;
    background: rgba(48, 111, 221, 0.15);
}

.ops-feature-item div {
    min-width: 0;
}

.ops-feature-item strong,
.ops-feature-item small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ops-feature-item strong {
    color: #d8e2f1;
    font-size: 13px;
    font-weight: 600;
}

.ops-feature-item small {
    margin-top: 3px;
    color: #586d89;
    font-size: 10px;
}

.ops-login-card {
    width: 100%;
    max-width: 490px;
    justify-self: end;
    padding: 43px 42px 34px;
    color: var(--ops-card-text);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 29px;
    background: rgba(252, 253, 255, 0.985);
    box-shadow: 0 35px 70px rgba(0, 7, 18, 0.32), 0 2px 12px rgba(0, 13, 35, 0.12);
}

.ops-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ops-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #377af4;
    border-radius: 13px;
    background: #eaf1ff;
    font-size: 16px;
}

.ops-authorized {
    color: #a6b1c2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.ops-login-card h2 {
    margin: 27px 0 8px;
    color: #182338;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ops-welcome {
    margin: 0 0 28px;
    color: #98a5b7;
    font-size: 14px;
}

.ops-welcome strong {
    color: #516077;
    font-weight: 600;
}

.ops-form-group {
    margin-bottom: 19px;
}

.ops-form-group label,
.ops-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #344158;
    font-size: 13px;
    font-weight: 600;
}

.ops-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ops-label-row > span {
    margin-bottom: 8px;
    color: #a5afbf;
    font-size: 11px;
    white-space: nowrap;
}

.ops-label-row .ops-security-tip {
    color: #8096b5;
}

.ops-security-tip i {
    margin-right: 5px;
    color: #4d82f3;
}

.ops-input-wrap {
    position: relative;
}

.ops-login-page .ops-input-wrap .form-control {
    width: 100%;
    height: 54px !important;
    margin: 0;
    padding: 10px 45px 10px 48px !important;
    color: #243148;
    border: 1px solid var(--ops-card-border);
    border-radius: 12px !important;
    background: #fbfcfe !important;
    box-shadow: none !important;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ops-login-page .ops-input-wrap .form-control::placeholder {
    color: #b7c0ce;
}

.ops-login-page .ops-input-wrap .form-control:focus {
    border-color: #78a4f8 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(57, 120, 242, 0.09) !important;
}

.ops-input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    color: #9aa9bd;
    font-size: 15px;
    transform: translateY(-50%);
}

.ops-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #96a5b8;
    border: 0;
    outline: 0;
    background: transparent;
    transform: translateY(-50%);
}

.ops-password-toggle:hover,
.ops-password-toggle:focus {
    color: #3477ed;
}

.ops-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 55px;
    margin: 4px 0 0;
    color: #fff !important;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, #3c7cf6 0%, #2468e8 100%);
    box-shadow: 0 14px 25px rgba(42, 105, 228, 0.22);
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ops-submit-button:hover,
.ops-submit-button:focus {
    color: #fff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 17px 30px rgba(42, 105, 228, 0.28);
}

.ops-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    color: #a0aaba;
    border-top: 1px solid #edf0f5;
    font-size: 11px;
    line-height: 1.6;
}

.ops-security-note i {
    margin-top: 2px;
    color: #6c89ba;
}

.ops-login-page label.error {
    position: static;
    display: block;
    margin: 6px 2px 0;
    color: #ec6677;
    font-size: 11px;
    font-weight: 400;
}

.ops-login-page .form-control.error {
    border-color: #ef9aa6 !important;
}

.ops-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 58px;
    padding: 0 16px;
    color: #40536b;
    font-size: 13px;
    line-height: 1.4;
}

.ops-footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ops-footer .ops-icp-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ops-footer .ops-icp-link:hover,
.ops-footer .ops-icp-link:focus {
    color: #6c89ba;
    text-decoration: none;
}

.ops-footer-main i {
    width: 3px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #40536b;
}

@media (max-width: 1180px) {
    .ops-main {
        gap: 60px;
        padding-right: 28px;
        padding-left: 28px;
    }

    .ops-hero h1 {
        font-size: 52px;
    }

    .ops-feature-list {
        grid-template-columns: 1fr;
        max-width: 310px;
        margin-top: 36px;
    }

    .ops-feature-item:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 900px) {
    body.ops-login-page {
        background-size: 64px 64px, 64px 64px, auto;
    }

    .ops-login-shell {
        width: min(100% - 36px, 600px);
    }

    .ops-header {
        min-height: 78px;
    }

    .ops-main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 30px 0 46px;
    }

    .ops-hero {
        width: 100%;
        text-align: center;
    }

    .ops-eyebrow,
    .ops-feature-list,
    .ops-hero-copy {
        display: none;
    }

    .ops-hero h1 {
        font-size: clamp(34px, 7vw, 48px);
        line-height: 1.2;
    }

    .ops-login-card {
        max-width: 500px;
        justify-self: auto;
    }
}

@media (max-width: 540px) {
    .ops-login-shell {
        width: calc(100% - 24px);
    }

    .ops-header {
        min-height: 70px;
    }

    .ops-brand {
        gap: 10px;
        font-size: 17px;
    }

    .ops-brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .ops-brand-mark i:first-child {
        top: 11px;
        left: 8px;
    }

    .ops-brand-mark i:last-child {
        right: 7px;
        bottom: 10px;
    }

    .ops-system-status {
        padding: 8px 10px;
        font-size: 0;
    }

    .ops-main {
        justify-content: flex-start;
        padding-top: 28px;
    }

    .ops-hero h1 {
        font-size: 32px;
    }

    .ops-login-card {
        padding: 30px 22px 25px;
        border-radius: 22px;
    }

    .ops-login-card h2 {
        margin-top: 22px;
        font-size: 27px;
    }

    .ops-authorized {
        font-size: 8px;
    }

    .ops-label-row > span {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ops-footer {
        min-height: 46px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .ops-header {
        min-height: 70px;
    }

    .ops-main {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .ops-login-card {
        padding-top: 31px;
        padding-bottom: 25px;
    }

    .ops-login-card h2 {
        margin-top: 18px;
    }

    .ops-welcome {
        margin-bottom: 20px;
    }

    .ops-form-group {
        margin-bottom: 13px;
    }

    .ops-login-page .ops-input-wrap .form-control,
    .ops-submit-button {
        height: 49px !important;
    }

    .ops-security-note {
        margin-top: 20px;
        padding-top: 15px;
    }

    .ops-footer {
        min-height: 42px;
    }
}
