html, body {
    margin: 0;
    height: 100%;
    font-family: "Microsoft YaHei", sans-serif;
}

body.auth-body {
    background: #15181d;
    overflow: hidden;
}

/* 登录 / 注册共用 1000x700 舞台与背景图 */
.stage-wrap {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-stage {
    position: relative;
    width: 1000px;
    height: 700px;
    flex: 0 0 auto;
    transform-origin: center center;
}

.auth-stage .auth-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

.auth-label {
    position: absolute;
    z-index: 25;
    font-size: 30px;
    color: #222;
}

.register-label {
    width: 150px;
    text-align: right;
}

.auth-input {
    position: absolute;
    z-index: 25;
    width: 180px;
    height: 45px;
    min-height: 0;
    padding: 0 10px;
    font-size: 24px;
    color: #000;
    background: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    outline: none;
}

/* 登录页与后台/社区共用 platform.css 的基础表单样式，
   这里用更高的选择器优先级恢复舞台上的绝对定位输入框尺寸。 */
body.auth-body .auth-input {
    width: 180px;
    min-height: 45px;
    padding: 0 10px;
    border: 2px solid #333;
    border-radius: 6px;
    box-shadow: none;
}
body.auth-body .auth-input:focus {
    border-color: #2a7de1;
    box-shadow: 0 0 0 3px rgba(42, 125, 225, .15);
}

.auth-error {
    position: absolute;
    left: 140px;
    top: 400px;
    width: 420px;
    z-index: 26;
    font-size: 20px;
    color: #d40000;
    text-align: center;
}

.auth-img-btn {
    position: absolute;
    z-index: 30;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
}

.auth-img-btn img {
    display: block;
    width: 150px;
    height: 50px;
}

.register-submit img {
    width: 125px;
}

.auth-img-btn:hover,
.register-submit:hover {
    filter: brightness(1.06);
}

.auth-img-btn:active,
.register-submit:active {
    transform: translateY(1px);
}

.auth-register-link {
    position: absolute;
    left: 315px;
    top: 500px;
    z-index: 25;
    text-align: center;
    font-size: 18px;
    color: #3b3b3b;
    text-decoration: none;
}

.auth-register-link:hover {
    text-decoration: underline;
}

.auth-login-link {
    position: absolute;
    left: 240px;
    top: 550px;
    z-index: 25;
    text-align: center;
    font-size: 18px;
    color: #3b3b3b;
    text-decoration: none;
}

.auth-login-link:hover {
    text-decoration: underline;
}

/* 三头像选择组件 */
.face-row {
    position: absolute;
    left: 236px;
    top: 405px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
}



.face-cell {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 4px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color .15s, transform .1s;
}

.face-cell:hover {
    transform: scale(1.04);
}

.face-cell.side {
    opacity: .55;
    border-color: #d5dbe2;
}

.face-cell.side:hover {
    opacity: 1;
    border-color: #2a7de1;
}

.face-cell.main {
    border-color: #2a7de1;
    box-shadow: 0 0 8px rgba(42, 125, 225, .45);
}

.face-cell img {
    display: block;
}

.face-cell.side img {
    width: 62px;
    height: 62px;
}

.face-cell.main img {
    width: 96px;
    height: 96px;
}

/* 加载遮罩 */
#loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    font-size: 18px;
    background: rgba(0, 0, 0, .55);
}

#loading img {
    max-width: 300px;
    max-height: 300px;
}
