@font-face {
    font-family: "Orbixbeta";
    src: url('/static/assets/Orbixbeta-Regular~2e97604c.otf') format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Patika";
    src: url('/static/assets/Patika-Medium~5e57f569.otf') format("opentype");
    font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
    font-family: "Patika", "MiSans", "微软雅黑", sans-serif;
    background: #0a0a0a;
    color: #eee;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
.big-box { display: flex; height: 100vh; }
.left-side {
    flex: 1.6;
    position: relative;
    background:
        url('/static/assets/login_bg_poster~e3aaa13d.jpg') center / cover no-repeat,
        linear-gradient(135deg, #1a0d12 0%, #0d0d0f 55%, #16090e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.left-side video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.left-logo-box {
    position: relative;
    z-index: 2;
    text-align: center;
}
.left-logo-box img {
    width: 440px;
    max-width: 60vw;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6));
}
.left-slogan {
    margin-top: 18px;
    font-size: 30px;
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}
.left-slogan .kuo { color: #ef5777; font-weight: bold; }
.left-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1;
}
.right-side {
    flex: 1;
    min-width: 420px;
    background: #0f0f10;
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}
.login-box { width: 100%; max-width: 360px; }
.login-title {
    font-family: "Orbixbeta", "MiSans", "微软雅黑", sans-serif;
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    letter-spacing: .5px;
}
.login-sub { text-align: center; color: #999; margin: 14px 0 28px; font-size: 16px; }
.tip-box {
    border: 1px solid #4a3a1e;
    background: #1c150a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #d8b877;
    margin-bottom: 22px;
    line-height: 1.6;
}
.tip-box b { display: block; color: #f0cf8e; margin-bottom: 4px; }
.tabs {
    display: flex;
    gap: 6px;
    background: #151517;
    border: 1px solid #232326;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #8b8b90;
    font-family: inherit;
    font-size: 13px;
    padding: 9px 6px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.tab:hover { color: #ccc; }
.tab[aria-selected="true"] {
    background: linear-gradient(90deg, #d9436b, #ef5777);
    color: #fff;
}
.field-box { margin-bottom: 22px; }
.field-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.field-top label::before { content: "* "; color: #ef5777; }
.field-box input {
    width: 100%;
    background: #060607;
    border: 1px solid #2b2b2e;
    border-radius: 8px;
    padding: 13px 14px;
    color: #eee;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border .2s;
}
.field-box input:focus { border-color: #ef5777; }
.field-box input::placeholder { color: #555; }
.field-box input.is-invalid { border-color: #ff6b81; }
.field-box input:-webkit-autofill,
.field-box input:-webkit-autofill:hover,
.field-box input:-webkit-autofill:focus {
    -webkit-text-fill-color: #eee;
    -webkit-box-shadow: 0 0 0 1000px #060607 inset;
    transition: background-color 9999s ease-out 0s;
}
.pw-hint { font-size: 12px; color: #a89468; line-height: 1.7; margin-top: 8px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-wrap .eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
}
.pw-wrap .eye:hover { color: #ccc; }
.pw-wrap .eye svg { width: 18px; height: 18px; }
.pw-wrap .eye .eye-off-icon { display: none; }
.pw-wrap .eye[aria-pressed="true"] .eye-open-icon { display: none; }
.pw-wrap .eye[aria-pressed="true"] .eye-off-icon { display: block; }
.link-mini {
    border: none;
    background: transparent;
    color: #ef5777;
    font-family: inherit;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
}
.link-mini:hover { text-decoration: underline; }
.err-msg { color: #ff6b81; font-size: 13px; min-height: 18px; margin-bottom: 8px; line-height: 1.5; }
.err-msg.ok { color: #8bd88f; }
.login-btn {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #d9436b, #ef5777);
    border: none;
    border-radius: 8px;
    padding: 13px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
.login-btn:hover { opacity: .88; }
.login-btn:disabled { opacity: .5; cursor: not-allowed; }
.login-btn[aria-busy="true"] { cursor: wait; }
.login-btn[aria-busy="true"]::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tSpin .8s linear infinite;
}
@keyframes tSpin { to { transform: rotate(360deg); } }
.go-reg {
    width: 100%;
    margin-top: 18px;
    border: 1px solid rgba(239, 87, 119, .35);
    background: #151517;
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border .2s;
}
.go-reg:hover { border-color: #ef5777; }
.go-reg .person { display: flex; align-items: center; font-size: 20px; color: #ddd; flex-shrink: 0; }
.go-reg .txt { flex: 1; min-width: 0; }
.go-reg .t1 { display: block; color: #eee; font-weight: bold; font-size: 14px; }
.go-reg .t2 { display: block; color: #ef5777; font-size: 12px; margin-top: 3px; line-height: 1.5; }
.go-reg .arrow { color: #666; font-size: 16px; display: flex; align-items: center; }
.send-code-row { display: flex; gap: 10px; }
.send-code-row input { flex: 1; min-width: 0; }
.send-code-btn {
    flex-shrink: 0;
    background: #151517;
    border: 1px solid rgba(239, 87, 119, .35);
    border-radius: 8px;
    padding: 0 16px;
    color: #ef5777;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: border .2s, opacity .2s;
}
.send-code-btn:hover { border-color: #ef5777; }
.send-code-btn:disabled { opacity: .5; cursor: not-allowed; }
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    cursor: pointer;
}
.check-row input {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    accent-color: #ef5777;
    flex-shrink: 0;
}
.check-row a { color: #ef5777; text-decoration: none; }
.check-row input.is-invalid { outline: 1px solid #ff6b81; outline-offset: 2px; }
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: #555;
    font-size: 12px;
}
.auth-meta a { color: #666; text-decoration: none; }
.auth-meta a:hover { color: #ef5777; }
.login-btn:focus-visible,
.send-code-btn:focus-visible,
.tab:focus-visible,
.eye:focus-visible,
.link-mini:focus-visible,
.go-reg:focus-visible {
    outline: 2px solid #ef5777;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .left-side { display: none; }
    .right-side { min-width: 0; }
}
@media (max-width: 600px) {
    body { height: auto; min-height: 100vh; overflow: auto; }
    .big-box { display: block; height: auto; min-height: 100vh; }
    .right-side {
        display: block;
        padding: 20px 16px;
        padding-top: 8vh;
        min-height: 100vh;
    }
    .login-box { max-width: 100%; }
    .login-title { font-size: 24px; }
    .login-sub { font-size: 14px; margin: 10px 0 20px; }
    .tabs { margin-bottom: 18px; }
    .tab { font-size: 12px; }
    .tip-box { font-size: 12px; padding: 10px 12px; margin-bottom: 16px; }
    .field-box { margin-bottom: 16px; }
    .field-box input { padding: 11px 12px; font-size: 13px; }
    .pw-wrap input { padding-right: 44px; }
    .login-btn { padding: 12px; font-size: 14px; }
    .go-reg { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-btn[aria-busy="true"]::after { animation: none !important; }
    .tab, .login-btn, .go-reg, .field-box input, .send-code-btn, .eye { transition: none; }
}
