/* 隐藏本地视频的进度条 */
video::-webkit-media-controls-timeline {
    display: none !important;
}
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}
.auth-btns {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 2;
}
.auth-btns button {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    margin-left: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-btns button:hover {
    background: #555;
}
.auth-modal-mask {
    position: fixed;
    z-index: 10001;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popup-mask-fadein 0.3s;
}
.auth-modal {
    width: 340px;
    min-height: 320px;
    background: #232323;
    border-radius: 12px;
    box-shadow: 0 4px 32px #000a;
    position: relative;
    perspective: 800px;
    font-family: 'Segoe UI', Arial, sans-serif;
    /* 修正弹窗内容溢出导致的位移 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    z-index: 2;
}
.auth-flip {
    width: 100%;
    min-height: 320px;
    height: auto;
    transition: transform 0.5s cubic-bezier(.4,1.6,.6,1);
    transform-style: preserve-3d;
    position: relative;
}
.auth-modal.flipped .auth-flip {
    transform: rotateY(180deg);
}
.auth-form {
    position: absolute;
    width: 100%;
    min-height: 320px;
    height: auto;
    top: 0; left: 0;
    backface-visibility: hidden;
    padding: 36px 28px 24px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form input {
    background: #181a1b;
    color: #fff;
    font-family: 'Microsoft YaHei', '黑体', 'Arial', sans-serif;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px;
    font-size: 1em;
    margin-bottom: 14px;
}
.auth-form input:focus {
    border-color: #555;
    outline: none;
}
.auth-form button {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 8px;
    font-family: 'Microsoft YaHei', '黑体', 'Arial', sans-serif;
    transition: background 0.2s;
}
.auth-form button:hover {
    background: #666;
}
.auth-form .auth-switch {
    background: none;
    color: #6cf;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.95em;
    text-decoration: underline;
}
.auth-form .auth-error {
    color: #ff6666;
    margin-bottom: 8px;
    font-size: 0.95em;
}
.auth-form.register {
    transform: rotateY(180deg);
}
/* 保证登录和注册表单高度一致，避免翻转时位移 */
.auth-form input,
.auth-form button,
.auth-form .auth-switch,
.auth-form .auth-error {
    min-width: 0;
    box-sizing: border-box;
}