:root {
    --cyber-bg-start: #0a0614;
    --cyber-bg-end: #120921;
    --cyber-surface: rgba(15, 9, 31, 0.82);
    --cyber-surface-strong: rgba(13, 7, 27, 0.9);
    --cyber-pink: #ff2e94;
    --cyber-pink-soft: #ff7bc5;
    --cyber-cyan: #1ae6ff;
    --cyber-violet: #7340e6;
    --cyber-text: #f5efff;
    --cyber-muted: #a78fd4;
    --cyber-muted-deep: #6e5a9e;
    --cyber-border: rgba(115, 77, 179, 0.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.cyber-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--cyber-text);
    background: linear-gradient(180deg, var(--cyber-bg-start) 0%, var(--cyber-bg-end) 100%);
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.cyber-shell {
    position: relative;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) auto;
    min-height: 100vh;
    min-height: 100dvh;
    isolation: isolate;
    overflow: hidden;
}

.cyber-glow {
    position: absolute;
    z-index: -2;
    display: block;
    border-radius: 999px;
    opacity: 0.64;
    filter: blur(10px);
    pointer-events: none;
}

.cyber-glow--pink {
    left: clamp(-220px, -10vw, -130px);
    bottom: clamp(-280px, -18vw, -190px);
    width: clamp(360px, 26vw, 520px);
    height: clamp(360px, 26vw, 520px);
    background: radial-gradient(circle, rgba(255, 46, 148, 0.32) 0%, rgba(255, 46, 148, 0.09) 62%, transparent 100%);
}

.cyber-glow--cyan {
    top: clamp(-230px, -11vw, -145px);
    right: clamp(-210px, -9vw, -115px);
    width: clamp(440px, 32vw, 620px);
    height: clamp(440px, 32vw, 620px);
    background: radial-gradient(circle, rgba(26, 230, 255, 0.3) 0%, rgba(26, 230, 255, 0.09) 62%, transparent 100%);
}

.cyber-glow--violet {
    top: clamp(-220px, -12vw, -145px);
    left: 50%;
    width: clamp(380px, 27vw, 530px);
    height: clamp(380px, 27vw, 530px);
    background: radial-gradient(circle, rgba(115, 64, 230, 0.24) 0%, rgba(115, 64, 230, 0.07) 62%, transparent 100%);
    transform: translateX(-50%);
}

.cyber-topbar {
    z-index: 3;
    min-width: 0;
    padding: 0 clamp(24px, 4vw, 56px);
    background: rgba(14, 8, 26, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.cyber-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
}

.cyber-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cyber-brand__mark {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyber-pink) 0%, var(--cyber-cyan) 100%);
    box-shadow: 0 4px 14px rgba(255, 46, 148, 0.45);
}

.cyber-brand__mark svg {
    width: 20px;
    height: 20px;
}

.cyber-brand__name {
    overflow: hidden;
    color: var(--cyber-text);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cyber-site-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 16px;
    color: var(--cyber-pink-soft);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1px solid rgba(255, 46, 148, 0.4);
    border-radius: 999px;
    background: rgba(26, 13, 46, 0.72);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cyber-site-link:hover,
.cyber-site-link:focus-visible {
    color: #fff;
    border-color: rgba(26, 230, 255, 0.72);
    box-shadow: 0 0 22px rgba(255, 46, 148, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.cyber-site-link svg {
    width: 14px;
    height: 14px;
}

.cyber-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    padding: clamp(24px, 3.2vh, 40px) clamp(24px, 4vw, 56px);
}

.cyber-main {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(440px, 45fr);
    align-items: center;
    column-gap: clamp(56px, 4.25vw, 84px);
    width: 100%;
    max-width: 1500px;
    min-height: 0;
    margin: 0 auto;
}

.cyber-brand-panel {
    display: flex;
    justify-self: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: 580px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.cyber-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: #d8b4fe;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid rgba(255, 46, 148, 0.35);
    border-radius: 999px;
    background: rgba(31, 15, 56, 0.7);
    margin-bottom: clamp(16px, 2.2vh, 22px);
}

.cyber-eyebrow::before {
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: var(--cyber-cyan);
    box-shadow: 0 0 12px rgba(26, 230, 255, 0.72);
}

.cyber-hero-title {
    margin: 0;
    color: var(--cyber-text);
    font-size: clamp(46px, min(4vw, 6.4vh), 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: clamp(10px, 1.4vh, 14px);
}

.cyber-hero-title__accent {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, #ff4db3 0%, #26d9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 46, 148, 0.28));
}

.cyber-hero-title__plain {
    display: block;
}

.cyber-hero-subtitle {
    margin: 0;
    color: var(--cyber-pink-soft);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.09em;
}

.cyber-hero-description {
    margin: clamp(6px, 0.8vh, 8px) 0 0;
    color: var(--cyber-muted);
    font-size: 15px;
    line-height: 24px;
}

.cyber-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(16px, 2vh, 20px);
}

.cyber-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 39px;
    padding: 9px 14px;
    color: #ede4ff;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 46, 148, 0.4);
    border-radius: 14px;
    background: rgba(23, 13, 41, 0.72);
}

.cyber-feature:nth-child(2) { border-color: rgba(26, 230, 255, 0.4); }
.cyber-feature:nth-child(3) { border-color: rgba(179, 102, 255, 0.4); }
.cyber-feature:nth-child(4) { border-color: rgba(52, 211, 153, 0.4); }

.cyber-feature svg {
    width: 18px;
    height: 18px;
}

.cyber-preview-card {
    width: min(500px, 33vw, 54vh, 100%);
    margin-top: clamp(18px, 2.4vh, 24px);
    padding: 12px 12px 16px;
    border: 1px solid rgba(255, 46, 148, 0.55);
    border-radius: 20px;
    background: rgba(18, 8, 38, 0.86);
    box-shadow: 0 20px 46px rgba(255, 46, 148, 0.2);
}

.cyber-preview-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 744 / 280;
    border-radius: 14px;
    background: #08051c;
}

.cyber-preview-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cyber-preview-tag {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
    background: rgba(4, 3, 20, 0.78);
}

.cyber-preview-tag--tool {
    left: 12px;
    color: #fff;
}

.cyber-preview-tag--quality {
    right: 12px;
    color: #ffd166;
}

.cyber-preview-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
}

.cyber-preview-progress-wrap {
    flex: 1;
    min-width: 0;
}

.cyber-preview-progress {
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(115, 64, 230, 0.16);
}

.cyber-preview-progress::after {
    display: block;
    width: 78%;
    height: 100%;
    content: "";
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyber-pink) 0%, var(--cyber-cyan) 100%);
}

.cyber-preview-progress-label {
    display: block;
    margin-top: 8px;
    color: var(--cyber-muted);
    font-size: 12px;
}

.cyber-preview-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #67e8f9;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(26, 230, 255, 0.4);
    border-radius: 999px;
    background: rgba(31, 15, 56, 0.82);
}

.cyber-preview-success::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: var(--cyber-cyan);
    box-shadow: 0 0 8px rgba(26, 230, 255, 0.8);
}

.cyber-login-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 0;
}

.cyber-login-card {
    position: relative;
    width: min(440px, 100%);
    padding: clamp(36px, 2.2vw, 40px) clamp(36px, 2.2vw, 40px) clamp(32px, 2vw, 36px);
    border: 1.5px solid rgba(255, 46, 148, 0.55);
    border-radius: 24px;
    background: var(--cyber-surface);
    box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.5), 0 16px 48px -10px rgba(255, 46, 148, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.cyber-login-card::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    content: "";
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 46, 148, 0.24), transparent 48%, rgba(26, 230, 255, 0.16));
    filter: blur(16px);
}

.cyber-card-head {
    margin-bottom: clamp(20px, 2.6vh, 24px);
    text-align: center;
}

.cyber-card-title {
    margin: 0;
    color: var(--cyber-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

.cyber-card-subtitle {
    margin: 7px 0 0;
    color: var(--cyber-muted);
    font-size: 14px;
}

.cyber-alert {
    margin: 0 0 18px;
    padding: 11px 13px;
    color: #ffd8eb;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 46, 148, 0.5);
    border-radius: 12px;
    background: rgba(123, 18, 73, 0.28);
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.8vh, 18px);
}

.cyber-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cyber-field label {
    color: #d8b4fe;
    font-size: 13px;
    font-weight: 500;
}

.cyber-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--cyber-border);
    border-radius: 14px;
    background: rgba(13, 8, 27, 0.82);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cyber-input-wrap:focus-within {
    border-color: rgba(26, 230, 255, 0.75);
    background: rgba(16, 9, 33, 0.94);
    box-shadow: 0 0 0 3px rgba(26, 230, 255, 0.08), 0 0 20px rgba(255, 46, 148, 0.11);
}

.cyber-input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #a978ef;
    pointer-events: none;
}

.cyber-input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 46px;
    color: var(--cyber-text);
    font-size: 14px;
    border: 0;
    outline: 0;
    background: transparent;
    caret-color: var(--cyber-cyan);
}

.cyber-input--username {
    padding-right: 16px;
}

.cyber-input::placeholder {
    color: var(--cyber-muted-deep);
    opacity: 1;
}

.cyber-password-toggle {
    position: absolute;
    right: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: #a978ef;
    cursor: pointer;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.cyber-password-toggle:hover,
.cyber-password-toggle:focus-visible {
    color: var(--cyber-cyan);
    background: rgba(26, 230, 255, 0.08);
    outline: none;
}

.cyber-password-toggle svg {
    width: 18px;
    height: 18px;
}

.cyber-utility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1px;
}

.cyber-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyber-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.cyber-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cyber-pink);
}

.cyber-forgot {
    color: var(--cyber-pink-soft);
    font-size: 13px;
    font-weight: 500;
}

.cyber-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 1px;
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyber-pink) 0%, var(--cyber-cyan) 100%);
    box-shadow: 0 12px 24px -4px rgba(255, 46, 148, 0.45), inset 0 1px rgba(255, 255, 255, 0.2);
    transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.cyber-submit:hover,
.cyber-submit:focus-visible {
    filter: saturate(1.15) brightness(1.06);
    box-shadow: 0 14px 30px -4px rgba(255, 46, 148, 0.55), 0 0 28px rgba(26, 230, 255, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.cyber-submit:active {
    transform: translateY(0);
}

.cyber-card-site-link,
.cyber-login-note {
    display: block;
    margin-top: clamp(18px, 2.4vh, 24px);
    color: var(--cyber-muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.cyber-card-site-link {
    text-decoration: none;
    transition: color 160ms ease;
}

.cyber-card-site-link:hover,
.cyber-card-site-link:focus-visible {
    color: var(--cyber-cyan);
    outline: none;
}

.cyber-footer {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1500px;
    min-height: 40px;
    margin: 0 auto;
    padding: 8px 16px 10px;
    color: var(--cyber-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 1600px) and (min-height: 860px) {
    .cyber-topbar__inner,
    .cyber-main,
    .cyber-footer {
        max-width: clamp(1580px, 86vw, 1760px);
    }

    .cyber-main {
        grid-template-columns: minmax(0, 55fr) minmax(470px, 45fr);
        column-gap: clamp(72px, 4vw, 96px);
    }

    .cyber-brand-panel {
        max-width: clamp(620px, 33vw, 680px);
    }

    .cyber-eyebrow {
        padding: 8px 16px;
        font-size: 14px;
    }

    .cyber-hero-title {
        font-size: clamp(62px, min(3.6vw, 6vh), 68px);
    }

    .cyber-hero-subtitle {
        font-size: 19px;
    }

    .cyber-hero-description {
        font-size: 16px;
        line-height: 26px;
    }

    .cyber-features {
        gap: 14px;
    }

    .cyber-feature {
        height: 42px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .cyber-preview-card {
        width: min(620px, 34vw, 56vh, 100%);
        padding: 14px 14px 18px;
    }

    .cyber-login-card {
        width: min(clamp(470px, 24vw, 510px), 100%);
        padding: clamp(42px, 2.4vw, 48px) clamp(42px, 2.4vw, 48px) clamp(38px, 2.2vw, 44px);
    }

    .cyber-card-head {
        margin-bottom: 28px;
    }

    .cyber-card-title {
        font-size: 32px;
    }

    .cyber-card-subtitle {
        font-size: 15px;
    }

    .cyber-form {
        gap: 20px;
    }

    .cyber-field {
        gap: 8px;
    }

    .cyber-field label,
    .cyber-input,
    .cyber-card-site-link,
    .cyber-login-note {
        font-size: 14px;
    }

    .cyber-input-wrap {
        min-height: 52px;
    }

    .cyber-input {
        height: 50px;
    }

    .cyber-submit {
        min-height: 60px;
        font-size: 17px;
    }
}

@media (max-width: 1100px) {
    .cyber-main {
        grid-template-columns: minmax(0, 52fr) minmax(410px, 48fr);
        column-gap: clamp(32px, 4vw, 48px);
    }

    .cyber-brand-panel {
        max-width: 500px;
    }

    .cyber-hero-title {
        font-size: clamp(44px, min(4.5vw, 6.2vh), 50px);
    }

    .cyber-preview-card {
        width: min(380px, 34vw, 50vh, 100%);
    }

    .cyber-login-card {
        width: min(410px, 100%);
    }
}

@media (max-width: 900px) {
    .cyber-stage {
        padding: clamp(20px, 4vh, 36px) 24px;
    }

    .cyber-main {
        display: block;
    }

    .cyber-brand-panel {
        display: none;
    }

    .cyber-login-panel {
        display: grid;
    }

    .cyber-login-card {
        width: min(430px, 100%);
        margin: auto;
    }

    .cyber-glow--violet {
        display: none;
    }

    .cyber-glow--pink,
    .cyber-glow--cyan {
        opacity: 0.62;
    }
}

@media (max-width: 560px) {
    .cyber-topbar {
        padding: 0 18px;
    }

    .cyber-brand {
        gap: 9px;
    }

    .cyber-brand__name {
        max-width: 170px;
        font-size: 14px;
    }

    .cyber-site-link {
        min-height: 34px;
        padding: 7px 11px;
    }

    .cyber-site-link span {
        display: none;
    }

    .cyber-login-panel {
        width: 100%;
    }

    .cyber-login-card {
        padding: 30px 24px 26px;
        border-radius: 20px;
    }

    .cyber-card-title {
        font-size: 25px;
    }

    .cyber-footer {
        min-height: 40px;
        padding: 7px 18px 9px;
        font-size: 10px;
    }
}

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