/* 认证蒙层样式 */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 85%;
    max-width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle svg {
    display: block;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.password-input-wrapper .auth-input {
    padding-right: 40px;
}

.auth-input:focus {
    outline: none;
    border-color: #97D3B6;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #4482FA;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
}

.auth-submit:not(:disabled):active {
    background: #3366d9;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.auth-switch-link {
    color: #97D3B6;
    cursor: pointer;
    text-decoration: underline;
}

.auth-forgot-password {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
}

.auth-forgot-link {
    color: #999;
    cursor: pointer;
    text-decoration: underline;
}

.auth-error {
    color: #FF6B6B;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.auth-error.show {
    display: block;
}

.auth-hint {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    display: none;
    padding: 12px;
    border-radius: 8px;
    background: #f5f5f5;
}

.auth-hint.show {
    display: block;
}

/* 权限增补弹窗样式 */
.supplement-message {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-cancel {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-cancel:active {
    background: #e0e0e0;
}


/* 首次注册引导弹窗样式 */
.welcome-container {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    width: 85%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.welcome-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: #333;
}

.welcome-tips {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.welcome-wechat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F5F5F5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wechat-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.copy-btn {
    padding: 6px 16px;
    background: #4482FA;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:active {
    background: #3366d9;
}

.welcome-qrcode {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.qrcode-img {
    width: 60%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.welcome-btn {
    width: 100%;
    padding: 14px;
    background: #4482FA;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.welcome-btn:active {
    background: #3366d9;
}

/* 修改密码弹窗样式 */
.change-password-hint {
    font-size: 12px;
    color: #999;
    text-align: left;
    margin-top: -8px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
