:root {
    --bg-start: #0a1f3d;
    --bg-end: #123a70;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #14253f;
    --text-secondary: #6b7b92;
    --line: #d9e2ef;
    --accent: #1a7bff;
    --accent-hover: #0f63de;
}

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

body {
    margin: 0;
    font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    color: var(--text-primary);
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.particles-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-sizing: border-box;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.login-head h1 {
    margin: 0;
    font-size: 28px;
}

.login-head p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.demo {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 180, 92, 0.2);
    color: #9b6200 !important;
    font-size: 12px;
}

.login-form {
    margin-top: 20px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 123, 255, 0.14);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 62px;
}

.bind-password {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 30px;
    min-width: 50px;
    border: 0;
    border-radius: 8px;
    background: #eef3fb;
    color: #4f627f;
    font-size: 12px;
    cursor: pointer;
}

.bind-password.icon-5 {
    background: rgba(26, 123, 255, 0.14);
    color: var(--accent);
}

.captcha-field-hidden {
    display: none;
}

.captcha-wrap {
    position: relative;
}

.captcha-wrap input {
    padding-right: 106px;
}

.validateImg {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 94px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.icon-nocheck {
    width: 18px;
    height: 18px;
    border: 1px solid #bfd0e4;
    border-radius: 5px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.icon-check {
    background: var(--accent);
    border-color: var(--accent);
}

.icon-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-tip {
    cursor: pointer;
    user-select: none;
}

.forget-password {
    margin-left: auto;
    color: var(--accent);
    text-decoration: none;
}

.login-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.login-btn:hover {
    background: var(--accent-hover);
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.footer a,
.footer span {
    color: inherit;
    text-decoration: none;
}

.padding-5 {
    padding: 0 6px;
}

@media screen and (max-width: 520px) {
    .login-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .login-head h1 {
        font-size: 24px;
    }

    .field input {
        height: 40px;
    }

    .captcha-wrap input {
        padding-right: 92px;
    }

    .validateImg {
        width: 82px;
    }
}
