:root {
    --login-ink: #15202b;
    --login-muted: #6b7a8a;
    --login-card: #ffffff;
    --login-radius: 18px;
    --login-accent: var(--base-color, #cdae76);
    --login-accent-rgb: var(--base-color-rgb, 205, 174, 118);
    --login-font: "Bahnschrift", "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--login-font);
    background: #f0f2f5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 72px;
    box-sizing: border-box;
    overflow: hidden;
    background: #f0f2f5;
}

.login-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-photo {
    position: absolute;
    inset: 0;
    background-image: var(--login-photo);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: login-kenburns 22s ease-in-out infinite alternate;
}

.login-page--photo {
    background: #10151c;
}

.login-stage {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    justify-content: center;
}

.form-wrap {
    width: 100%;
    background: var(--login-card);
    border: 1px solid rgba(26, 36, 51, 0.06);
    border-radius: var(--login-radius);
    padding: 44px 40px 36px;
    box-sizing: border-box;
    box-shadow:
        0 2px 4px rgba(40, 55, 80, 0.03),
        0 12px 32px rgba(40, 55, 80, 0.07),
        0 28px 64px rgba(40, 55, 80, 0.05);
}

.login-page--photo .form-wrap {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 18px 50px rgba(0, 0, 0, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-page--photo .form-wrap {
        background: #ffffff;
    }
}

.login-anim {
    animation: login-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--d, 0) * 0.07s);
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    min-height: 0;
}

.login-logo {
    display: block;
    max-width: 176px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-brand-name {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: 0.08em;
    color: var(--login-ink);
    line-height: 1.3;
    text-align: center;
}

.login-heading {
    text-align: center;
    margin-bottom: 28px;
}

.login-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: 0.08em;
    color: var(--login-ink);
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-wrap {
    width: auto;
    height: 50px;
    background: #f4f6f8;
    border: 1px solid transparent;
    border-radius: 12px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.input-wrap:hover {
    background: #eef1f4;
}

.input-wrap.is-focus {
    border-color: rgba(var(--login-accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--login-accent-rgb), 0.12);
    background: #fff;
}

.input-wrap.is-focus .iconfont {
    color: var(--login-accent);
}

.input-wrap .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
}

.input-wrap .iconfont {
    font-size: 18px;
    color: #92a0b0;
    transition: color 0.22s ease;
}

.input-wrap .input,
.input-wrap .layui-form-select {
    flex: 1;
    width: 0;
    line-height: 48px;
    height: 48px;
    padding: 0 8px 0 0;
    border: none;
    background: transparent;
    color: var(--login-ink);
    font-size: 14px;
    font-family: inherit;
}

.input-wrap .input::placeholder {
    color: #97a5b5;
}

.input-wrap .input:focus {
    outline: none;
}

.pwd-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #92a0b0;
    border-radius: 8px;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.pwd-toggle:hover {
    color: var(--login-accent);
    background: rgba(var(--login-accent-rgb), 0.08);
}

.pwd-toggle .iconfont {
    font-size: 16px;
    color: inherit;
}

.input-wrap--captcha .captcha {
    height: 34px;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.input-wrap--captcha .captcha:hover {
    opacity: 0.88;
    transform: scale(1.02);
}

.form-wrap .layui-btn.login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    line-height: 50px;
    margin-top: 24px;
    padding: 0;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    box-shadow: none;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.form-wrap .layui-btn.login-btn:hover {
    filter: brightness(1.05);
}

.form-wrap .layui-btn.login-btn:active {
    filter: brightness(0.97);
}

.login-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
}

.form-wrap .layui-btn.login-btn.is-loading {
    pointer-events: none;
    opacity: 0.82;
    letter-spacing: 0;
    text-indent: 0;
}

.form-wrap .layui-btn.login-btn.is-loading .login-btn-text {
    display: none;
}

.form-wrap .layui-btn.login-btn.is-loading .login-btn-spinner {
    display: block;
}

.layui-form-select .layui-input {
    border: none;
    line-height: 48px;
    height: 48px;
    padding-left: 0;
}

.login-footer {
    position: relative;
    z-index: 10;
    margin-top: 28px;
    max-width: 90%;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(26, 36, 51, 0.36);
}

.login-footer a {
    color: rgba(26, 36, 51, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: rgba(26, 36, 51, 0.7);
}

.login-page--photo .login-footer {
    color: rgba(255, 255, 255, 0.48);
}

.login-page--photo .login-footer a {
    color: rgba(255, 255, 255, 0.55);
}

.login-page--photo .login-footer a:hover {
    color: rgba(255, 255, 255, 0.88);
}

.login-footer-sep {
    margin: 0 6px;
    opacity: 0.5;
}

@keyframes login-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes login-kenburns {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 28px 16px 56px;
        justify-content: flex-start;
        padding-top: 12vh;
    }

    .form-wrap {
        padding: 34px 24px 28px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-anim,
    .form-wrap .layui-btn.login-btn,
    .input-wrap,
    .input-wrap--captcha .captcha,
    .login-btn-spinner,
    .login-photo {
        animation: none !important;
        transition: none !important;
    }

    .login-photo {
        transform: none;
    }
}
