* {
    box-sizing: border-box;
}

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

body,
input,
button {
    font-family: "Microsoft YaHei", "PingFang SC", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

.qm-auth {
    color: #1f2933;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, .94), rgba(16, 54, 64, .86)),
        #111827;
}

.qm-auth-shell {
    min-height: 100vh;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 64px;
    align-items: center;
    padding: 44px 0;
}

.qm-auth-side {
    color: #fff;
}

.qm-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qm-auth-brand span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #17c964 0%, #20a4f3 100%);
}

.qm-auth-brand strong {
    font-size: 18px;
}

.qm-auth-side h1 {
    margin: 42px 0 16px;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.qm-auth-side p {
    max-width: 560px;
    margin: 0;
    color: #d8e5ee;
    font-size: 16px;
    line-height: 1.85;
}

.qm-auth-points {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.qm-auth-points span {
    width: fit-content;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    color: #dbe7ef;
    background: rgba(255, 255, 255, .08);
}

.qm-auth-panel {
    width: 100%;
    padding: 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.qm-auth-panel-head {
    margin-bottom: 22px;
}

.qm-auth-panel-head span {
    display: inline-flex;
    height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 6px;
    color: #0f8f4d;
    background: #e9fbf0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.qm-auth-panel-head h2 {
    margin: 12px 0 0;
    color: #111827;
    font-size: 26px;
}

.qm-auth-field {
    display: block;
    margin-bottom: 15px;
}

.qm-auth-field > span {
    display: block;
    margin-bottom: 7px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.qm-auth-input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    color: #111827;
    background: #fff;
}

.qm-auth-input:focus {
    border-color: #16c65a;
    box-shadow: 0 0 0 3px rgba(22, 198, 90, .12);
}

.qm-auth-button {
    width: 100%;
    height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #16c65a;
    cursor: pointer;
    font-weight: 800;
}

.qm-auth-button:hover {
    background: #0dac4d;
}

.qm-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    color: #2366a8;
    font-size: 13px;
    font-weight: 700;
}

.qm-auth-message,
.errorlist {
    margin: 0 0 12px;
    padding: 10px 12px;
    color: #b42318;
    background: #fff4f2;
    border-left: 3px solid #ff5722;
    list-style: none;
}

.qm-auth {
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(12, 18, 30, .74), rgba(13, 35, 43, .82)),
        url("../img/login-bg.jpg") center / cover no-repeat fixed,
        #101827;
}

.qm-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 13, 24, .24), rgba(8, 13, 24, .05) 55%, rgba(8, 13, 24, .42)),
        rgba(0, 0, 0, .08);
}

.qm-auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(1160px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 84px;
    align-items: center;
    padding: 48px 0;
}

.qm-auth-side {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .26);
}

.qm-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.qm-auth-brand span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #16c65a 0%, #20a4f3 100%);
    box-shadow: 0 14px 34px rgba(22, 198, 90, .32);
}

.qm-auth-brand strong {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.qm-auth-side h1 {
    max-width: 620px;
    margin: 46px 0 16px;
    color: #fff;
    font-size: 48px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
}

.qm-auth-side p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 1.9;
}

.qm-auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.qm-auth-points span {
    width: auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(8px);
}

.qm-auth-panel {
    width: 390px;
    padding: 36px 34px 32px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    color: #1b2533;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(14px);
}

.qm-auth-panel-head {
    margin-bottom: 24px;
}

.qm-auth-panel-head span {
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 4px;
    color: #0f8f4d;
    background: #e9fbf0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.qm-auth-panel-head h2 {
    margin: 12px 0 0;
    color: #111827;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
}

.qm-auth-field {
    display: block;
    margin-bottom: 14px;
}

.qm-auth-field > span {
    display: block;
    margin-bottom: 7px;
    color: #536173;
    font-size: 13px;
    font-weight: 700;
}

.qm-auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    color: #111827;
    background: #fff;
    box-shadow: none;
}

.qm-auth-input:focus {
    border-color: #16c65a;
    box-shadow: 0 0 0 3px rgba(22, 198, 90, .12);
}

.qm-auth-button {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #16c65a;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
}

.qm-auth-button:hover {
    background: #0dac4d;
}

.qm-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    color: #1f66a9;
    font-size: 13px;
    font-weight: 700;
}

.qm-auth-message,
.qm-auth .errorlist {
    margin: 0 0 12px;
    padding: 10px 12px;
    color: #b42318;
    background: #fff4f2;
    border-left: 3px solid #ff5722;
    list-style: none;
}

.qm-user {
    color: #20242a;
    background: #f2f4f7;
}

.qm-user-header {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: #fff;
    background: #20222a;
}

.qm-user-brand {
    font-size: 18px;
    font-weight: 700;
}

.qm-user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qm-user-nav a {
    color: #8fd3ff;
}

.qm-user-main {
    padding: 18px;
}

.qm-user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.qm-user-stat,
.qm-user-panel {
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.qm-user-stat {
    padding: 18px;
}

.qm-user-stat span {
    color: #6b7280;
}

.qm-user-stat strong {
    display: block;
    margin-top: 10px;
    font-size: 26px;
}

.qm-user-panel {
    margin-bottom: 14px;
    padding: 14px;
}

.qm-user-panel-title {
    margin: -14px -14px 14px;
    padding: 12px 14px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
}

.qm-user-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.qm-user-info span,
.qm-user-table td div {
    display: block;
    color: #8a8f99;
    font-size: 12px;
}

.qm-user-info strong {
    display: block;
    margin-top: 6px;
}

.qm-user-table {
    width: 100%;
    border-collapse: collapse;
}

.qm-user-table th,
.qm-user-table td {
    padding: 10px;
    border: 1px solid #e6e6e6;
    text-align: left;
}

.qm-user-table th {
    background: #f8f8f8;
}

.qm-user-empty {
    color: #999;
    text-align: center;
}

@media (max-width: 900px) {
    .qm-auth-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .qm-auth-side h1 {
        margin-top: 28px;
        font-size: 36px;
    }

    .qm-user-stats,
    .qm-user-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .qm-auth-shell {
        width: min(100% - 28px, 1080px);
        padding: 28px 0;
    }

    .qm-auth-panel {
        padding: 24px 18px;
    }

    .qm-auth-side h1 {
        font-size: 30px;
    }

    .qm-user-stats,
    .qm-user-info {
        grid-template-columns: 1fr;
    }
}
